Fixed bug with request.has_any_perm().

This commit is contained in:
Lance Edgar 2013-09-20 20:21:59 -07:00
parent 62a0b67502
commit e58f8594c4

View file

@ -73,7 +73,7 @@ def context_found(event):
return has_permission(Session(), request.user, perm) return has_permission(Session(), request.user, perm)
request.has_perm = has_perm request.has_perm = has_perm
def has_any_perm(perms): def has_any_perm(*perms):
for perm in perms: for perm in perms:
if has_permission(Session(), request.user, perm): if has_permission(Session(), request.user, perm):
return True return True