Browse Source

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

perf: 修复账号权限问题
pull/11247/head
老广 1 year ago committed by GitHub
parent
commit
b2108ec624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/perms/utils/account.py

2
apps/perms/utils/account.py

@ -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']:

Loading…
Cancel
Save