Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed May 14, 2013
1 parent 7006660 commit 7d1c15b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AccessControl/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ def allowed(self, object, object_roles=None):
inner_obj = parent
continue
if hasattr(inner_obj, 'im_self'):
inner_obj=inner_obj.im_self
inner_obj=getattr(inner_obj, 'aq_inner', inner_obj)
inner_obj = inner_obj.im_self
inner_obj = getattr(inner_obj, 'aq_inner', inner_obj)
continue
break
return None

domains=[]
domains = []

def has_role(self, roles, object=None):
"""Check if the user has at least one role from a list of roles.
Expand Down

0 comments on commit 7d1c15b

Please sign in to comment.