[Update] 修改用户详情页中添加用户组标签的显示条件是:当前组织的普通用户或组管理员

This commit is contained in:
jym503558564
2019-11-25 15:30:11 +08:00
parent 54887a3460
commit cc9554cdb4
3 changed files with 48 additions and 38 deletions

View File

@@ -217,6 +217,10 @@ class RoleMixin:
def can_audit_current_org(self):
return current_org.can_audit_by(self)
@property
def can_user_current_org(self):
return current_org.can_user_by(self)
@property
def can_admin_or_audit_current_org(self):
return self.can_admin_current_org or self.can_audit_current_org