perf: 优化用户授权树工具类存放目录 user_perm_tree 文件中

This commit is contained in:
Bai
2022-12-09 14:03:00 +08:00
parent 5e5061a825
commit 26d9cdc50d
7 changed files with 150 additions and 129 deletions

View File

@@ -37,7 +37,7 @@ def refresh_settings_on_changed(sender, instance=None, **kwargs):
if instance.is_name('PERM_SINGLE_ASSET_TO_UNGROUP_NODE'):
""" 过期所有用户授权树 """
logger.debug('Expire all user perm tree')
from perms.utils.user_permission import UserPermTreeExpireUtil
from perms.utils import UserPermTreeExpireUtil
UserPermTreeExpireUtil().expire_perm_tree_for_all_user()