mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-23 13:37:31 +00:00
fix: 修复授权查看组织角色权限问题
This commit is contained in:
parent
18286b674c
commit
eef067c9ca
@ -89,11 +89,15 @@ class RoleViewSet(JMSModelViewSet):
|
||||
|
||||
|
||||
class SystemRoleViewSet(RoleViewSet):
|
||||
perm_model = SystemRole
|
||||
|
||||
def get_queryset(self):
|
||||
return super().get_queryset().filter(scope='system')
|
||||
|
||||
|
||||
class OrgRoleViewSet(RoleViewSet):
|
||||
perm_model = OrgRole
|
||||
|
||||
def get_queryset(self):
|
||||
return super().get_queryset().filter(scope='org')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user