Merge pull request #238 from kevgliss/231-authority-owner
associating new authorities with the owner roles
This commit is contained in:
commit
49a40c50e8
|
@ -101,6 +101,10 @@ def create(kwargs):
|
||||||
database.update(cert)
|
database.update(cert)
|
||||||
authority = database.create(authority)
|
authority = database.create(authority)
|
||||||
|
|
||||||
|
# the owning dl or role should have this authority associated with it
|
||||||
|
owner_role = role_service.get_by_name(kwargs['ownerEmail'])
|
||||||
|
owner_role.authority = authority
|
||||||
|
|
||||||
g.current_user.authorities.append(authority)
|
g.current_user.authorities.append(authority)
|
||||||
|
|
||||||
return authority
|
return authority
|
||||||
|
|
Loading…
Reference in New Issue