Add update_options to authorities service

This commit is contained in:
Mathias Petermann 2020-09-23 16:36:59 +02:00
parent 72d28d0af9
commit e64e2a41d5
1 changed files with 15 additions and 0 deletions

View File

@ -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.