author | Sverre Rabbelier <srabbelier@gmail.com> |
Thu, 26 Feb 2009 20:23:21 +0000 | |
changeset 1534 | 0a8dbeccf0d9 |
parent 1533 | 50fb3a9b6615 |
child 1535 | a5277d506a21 |
--- a/app/soc/logic/models/user.py Thu Feb 26 18:00:30 2009 +0000 +++ b/app/soc/logic/models/user.py Thu Feb 26 20:23:21 2009 +0000 @@ -110,8 +110,8 @@ # default user to the current logged in user user = self.getForAccount(account) - if user: - return user.is_developer + if user and user.is_developer: + return True if account and (account == users.get_current_user()): return users.is_current_user_admin()