finegrained service model access

This commit is contained in:
0mar
2021-06-08 14:01:04 +02:00
parent b2b040da6c
commit 2ac1cfe4ac
4 changed files with 23 additions and 10 deletions

View File

@@ -62,6 +62,7 @@ class UserListAPIHandler(APIHandler):
'read:users:servers',
'read:users:groups',
'read:users:activity',
'read:users:roles',
)
def get(self):
state_filter = self.get_argument("state", None)
@@ -176,6 +177,7 @@ class UserAPIHandler(APIHandler):
'read:users:servers',
'read:users:groups',
'read:users:activity',
'read:users:roles',
)
async def get(self, user_name):
user = self.find_user(user_name)