Skip to content

Commit

Permalink
Merge pull request Scifabric#564 from PyBossa/issue-hidden-app-forbidden
Browse files Browse the repository at this point in the history
Fix an error in app.auth.read permissions
  • Loading branch information
teleyinex committed Jul 17, 2013
2 parents 746e7d7 + e00fee3 commit 1d0c7c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pybossa/auth/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ def read(app=None):
if current_user.is_authenticated():
if current_user.admin:
return True
else:
return False
if current_user.id == app.owner.id:
elif current_user.id == app.owner.id:
return True
else:
return False
Expand Down

0 comments on commit 1d0c7c6

Please sign in to comment.