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

pull/9536/head
Bai 2023-02-14 14:17:12 +08:00 committed by Jiangjie.Bai
parent 18286b674c
commit eef067c9ca
1 changed files with 4 additions and 0 deletions

View File

@ -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')