Merge pull request #11245 from jumpserver/pr@dev@perf_account_perm

perf: 修复账号权限问题
pull/11247/head
老广 2023-08-10 16:03:22 +08:00 committed by GitHub
commit b2108ec624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class PermAccountUtil(AssetPermissionUtil):
account = None
_accounts = []
if alias == AliasAccount.USER and user.username in username_accounts_mapper:
account = username_accounts_mapper[user.username]
_accounts = username_accounts_mapper[user.username]
elif alias in username_accounts_mapper:
_accounts = username_accounts_mapper[alias]
elif alias in ['@INPUT', '@ANON', '@USER']: