fix: 修复授权查看组织角色权限问题

pull/9536/head
Bai 2 years ago committed by Jiangjie.Bai
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…
Cancel
Save