mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-17 07:49:01 +00:00
perf: 工作台支持 root
This commit is contained in:
@@ -127,7 +127,7 @@ class RoleBinding(JMSModel):
|
||||
orgs = all_orgs.filter(id__in=org_ids)
|
||||
|
||||
# 全局组织
|
||||
if orgs and perm != 'rbac.view_workbench' and user.has_perm('orgs.view_rootorg'):
|
||||
if orgs and user.has_perm('orgs.view_rootorg'):
|
||||
orgs = [Organization.root(), *list(orgs)]
|
||||
return orgs
|
||||
|
||||
|
Reference in New Issue
Block a user