mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-16 07:18:22 +00:00
feat: 支持续期Connection Token
This commit is contained in:
@@ -366,7 +366,7 @@ class RoleMixin:
|
||||
"""
|
||||
由于这里用了 cache ,所以不能改成 self.system_roles.filter().exists() 会查询的
|
||||
"""
|
||||
if not self._is_superuser:
|
||||
if self._is_superuser is not None:
|
||||
return self._is_superuser
|
||||
|
||||
from rbac.builtin import BuiltinRole
|
||||
|
Reference in New Issue
Block a user