Permalink
Browse files

bug fix

  • Loading branch information...
1 parent b709057 commit 55f5976d80a94771fa31f9a4a4efcb367fed4e2f binux committed Mar 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/user_manager.py
View
@@ -108,7 +108,7 @@ def get_group(self, email):
def get_permission(self, email):
user = self.get_user(email)
if user:
- return user.permission
+ return user.permission or 0
return None
@mem_cache(expire=60)

0 comments on commit 55f5976

Please sign in to comment.