mirror of
https://github.com/hequan2017/seal.git
synced 2026-04-25 19:20:47 +08:00
修改权限
This commit is contained in:
@@ -34,7 +34,7 @@ class UserInfo(APIView):
|
||||
result = {
|
||||
'name': obj.username,
|
||||
'user_id': obj.id,
|
||||
'access': ['super_admin', 'admin'] if obj.is_superuser else [],
|
||||
'access': list(obj.get_all_permissions()),
|
||||
'token': token,
|
||||
'avator': 'https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user