feat: 支持续期Connection Token

This commit is contained in:
Jiangjie.Bai
2022-03-30 11:08:50 +08:00
committed by 老广
parent 71f8b40e21
commit 54d1996507
2 changed files with 56 additions and 12 deletions

View File

@@ -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