Skip to content

Commit

Permalink
Fixed an error in find_permissions.
Browse files Browse the repository at this point in the history
issue #194
  • Loading branch information
anandology committed May 6, 2016
1 parent e532382 commit e10315c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleansweep/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_permissions(user, place):
"""
perms = []
# ADMIN_USERS have all the permissions
if user.email in app.config['ADMIN_USERS']:
if user and user.email in app.config['ADMIN_USERS']:
perms = ['*', 'read', 'write', 'admin', 'siteadmin', 'volunteers.view']


Expand Down

0 comments on commit e10315c

Please sign in to comment.