perf: 修改 org admin

pull/7881/head
ibuler 2022-03-16 17:53:06 +08:00 committed by Jiangjie.Bai
parent da9136f7af
commit 580d2cd80b
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ class OrgRoleMixin:
'auditor': BuiltinRole.org_auditor,
'admin': BuiltinRole.org_admin
}
role = role_mapper.get(role_name)
assert role_name in role_mapper
role = role_mapper.get(role_name).get_role()
with tmp_to_org(self):
org_admins = OrgRoleBinding.get_role_users(role)
return org_admins