Fixing a few things, adding tests. (#326)

This commit is contained in:
kevgliss
2016-05-20 09:03:34 -07:00
parent 615df76dd5
commit e04c1e7dc9
13 changed files with 230 additions and 138 deletions

View File

@ -157,8 +157,9 @@ def get_authority_role(ca_name):
else:
for role in g.current_user.roles:
if role.authority:
if role.authority.name == ca_name:
return role
for authority in role.authorities:
if authority.name == ca_name:
return role
def render(args):