Browse Source

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

pull/9536/head
Bai 2 years ago committed by Jiangjie.Bai
parent
commit
eef067c9ca
  1. 4
      apps/rbac/api/role.py

4
apps/rbac/api/role.py

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