Skip to content

Commit

Permalink
AccessType.NONE is not a valid level. Use 'None' instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Xarthisius committed Oct 12, 2021
1 parent 40e2458 commit e561432
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/models/tale.py
Expand Up @@ -334,6 +334,9 @@ def setUserAccess(
else:
event_type = "wt_tale_shared"

if level == AccessType.NONE:
level = None

if "_id" in doc: # During creation of Tale it's not there yet.
notify_event([user["_id"]], event_type, {"taleId": str(doc["_id"])})
for folder in Folder().find({"meta.taleId": str(doc["_id"])}):
Expand Down

0 comments on commit e561432

Please sign in to comment.