mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-14 06:19:17 +00:00
fix: 修复校验用户密码规则
This commit is contained in:
@@ -209,6 +209,11 @@ class RoleMixin:
|
||||
from orgs.models import ROLE as ORG_ROLE
|
||||
return [str(role.label) for role in self.org_roles if role in ORG_ROLE]
|
||||
|
||||
@lazyproperty
|
||||
def org_roles_value_list(self):
|
||||
from orgs.models import ROLE as ORG_ROLE
|
||||
return [str(role.value) for role in self.org_roles if role in ORG_ROLE]
|
||||
|
||||
@lazyproperty
|
||||
def org_role_display(self):
|
||||
return ' | '.join(self.org_roles_label_list)
|
||||
|
Reference in New Issue
Block a user