Add update_options to authorities service
This commit is contained in:
parent
72d28d0af9
commit
e64e2a41d5
|
@ -39,6 +39,21 @@ def update(authority_id, description, owner, active, roles):
|
||||||
return database.update(authority)
|
return database.update(authority)
|
||||||
|
|
||||||
|
|
||||||
|
def update_options(authority_id, options):
|
||||||
|
"""
|
||||||
|
Update an authority with new options.
|
||||||
|
|
||||||
|
:param authority_id:
|
||||||
|
:param options: the new options to be saved into the authority
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
|
||||||
|
authority = get(authority_id)
|
||||||
|
|
||||||
|
authority.options = options
|
||||||
|
|
||||||
|
return database.update(authority)
|
||||||
|
|
||||||
def mint(**kwargs):
|
def mint(**kwargs):
|
||||||
"""
|
"""
|
||||||
Creates the authority based on the plugin provided.
|
Creates the authority based on the plugin provided.
|
||||||
|
|
Loading…
Reference in New Issue