fix: 修复用户组织树问题

pull/9214/head
Eric 2 years ago committed by Eric_Lee
parent d60f9a7c69
commit acfce4961c

@ -1,10 +1,8 @@
from rest_framework.request import Request
from users.models import User
from common.http import is_true
from perms.utils import UserPermTreeRefreshUtil
from users.models import User
__all__ = ['RebuildTreeMixin']

@ -59,7 +59,7 @@ class UserPermTreeRefreshUtil(_UserPermTreeCacheMixin):
with UserGrantedTreeRebuildLock(self.user.id):
for org in to_refresh_orgs:
self.rebuild_user_perm_tree_for_org(org)
self.mark_user_orgs_refresh_finished(to_refresh_orgs)
self.mark_user_orgs_refresh_finished([str(org.id) for org in to_refresh_orgs])
def rebuild_user_perm_tree_for_org(self, org):
with tmp_to_org(org):

Loading…
Cancel
Save