Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
remove debug infos
Browse files Browse the repository at this point in the history
  • Loading branch information
wp99cp committed Sep 10, 2020
1 parent 8a21ae7 commit bc1f11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/changeAccessData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ async function isValidChange(
// check if user has owner access on the document
const ruleOfCurrentUser = documentData.access[uid];
if (ruleOfCurrentUser !== 'owner' && !onlyAccessNeeded)
throw new Error('Only the owner can change the access data!' + ruleOfCurrentUser + ' ' + onlyAccessNeeded + ' ' + document.ref.path);
throw new Error('Only the owner can change the access data!');

// the owner of the document can't be changed, you can't add a second owner
if (!requestedAccessData.upgradeOnly && (requestedAccessData.requestedAccessData[uid] !== 'owner' ||
Expand Down

0 comments on commit bc1f11c

Please sign in to comment.