Skip to content

Commit

Permalink
Fixed yet another error in permission check when user is not logged in.
Browse files Browse the repository at this point in the history
issue #194
  • Loading branch information
anandology committed May 6, 2016
1 parent 87db3b7 commit c3729da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cleansweep/plugins/committees/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def init_app(app):
def get_user_roles(user):
"""Returns permission of a role.
"""
if not user:
return
committee_member_objects = user.committees.all()
for cm in committee_member_objects:
place = cm.committee.place
Expand Down

0 comments on commit c3729da

Please sign in to comment.