perf: 修改 k8s icon

This commit is contained in:
ibuler
2023-08-16 11:42:36 +08:00
parent fc595bc4e4
commit ceee2e1633
2 changed files with 3 additions and 4 deletions

View File

@@ -228,9 +228,8 @@ class UserGrantedK8sAsTreeApi(SelfOrPKUserMixin, ListAPIView):
util = PermAccountUtil()
accounts = util.get_permed_accounts_for_user(self.user, token.asset)
account_name = token.account
if account_name in [
AliasAccount.INPUT, AliasAccount.USER
]:
if account_name in [AliasAccount.INPUT, AliasAccount.USER]:
return token.input_secret
else:
accounts = filter(lambda x: x.name == account_name, accounts)