mirror of https://github.com/jumpserver/jumpserver
fix: 修复授权查看组织角色权限问题
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