add delete scopes for users, groups, servers

e.g. cull-idle services do not need permission to start servers in order to be able to stop them
This commit is contained in:
Min RK
2021-09-21 14:39:27 +02:00
parent 4f6ef54b50
commit 8cac83fc96
5 changed files with 17 additions and 6 deletions

View File

@@ -129,7 +129,7 @@ class GroupAPIHandler(_GroupAPIHandler):
self.write(json.dumps(self.group_model(group)))
self.set_status(201)
@needs_scope('admin:groups')
@needs_scope('delete:groups')
def delete(self, group_name):
"""Delete a group by name"""
group = self.find_group(group_name)