Skip to content

Commit

Permalink
Set default can_edit and can_move_page permissions to user.is_staff t…
Browse files Browse the repository at this point in the history
…o prevent unnecessary leakage of sensitive data to non-staff users
  • Loading branch information
dbunskoek committed Aug 30, 2012
1 parent 293c43f commit f319bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fiber/permissions.py
Expand Up @@ -33,13 +33,13 @@ def can_edit(self, user, obj):
""" """
Should return :const:`True` if user is allowed to edit `obj`. Should return :const:`True` if user is allowed to edit `obj`.
""" """
return True return user.is_staff


def can_move_page(self, user, page): def can_move_page(self, user, page):
""" """
Should return :const:`True` if user is allowed to move page. Should return :const:`True` if user is allowed to move page.
""" """
return True return user.is_staff


def object_created(self, user, obj): def object_created(self, user, obj):
""" """
Expand Down

0 comments on commit f319bad

Please sign in to comment.