Skip to content

Commit

Permalink
Fix the authorized check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Dec 13, 2013
1 parent dd40ba9 commit d42cb2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tahrir_api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ def __json__(self):
def authorized(self, person):
""" Return true if a given person is authorized to admin a badge """
for authz in self.authorizations:
for authorized in authz.persons:
if authorized == person:
return True
if authz.person == person:
return True

return False

Expand Down

0 comments on commit d42cb2b

Please sign in to comment.