Skip to content

Commit

Permalink
* Fix a permissions check.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgroff committed Nov 1, 2018
1 parent 95d7a75 commit 9c1b568
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_kala/projects/tasks/export_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def run(self, *args, **kwargs):
manager = settings.PLATFORM_MANAGER()

# If the user does not have change or create priviliages, fail.
if not document.has_change(user) and not document.has_create(user):
if not document.can_create(user):
# TODO: this should be logged
return False

Expand Down
2 changes: 1 addition & 1 deletion django_kala/projects/tasks/export_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def run(self, *args, **kwargs):
manager = settings.PLATFORM_MANAGER()

# If the user does not have change or create priviliages, fail.
if not project.has_change(user) and not project.has_create(user):
if not project.can_create(user):
# TODO: this should be logged
return False

Expand Down

0 comments on commit 9c1b568

Please sign in to comment.