fix: 系统用户 actions

pull/7208/head
xinwen 2021-11-16 11:12:59 +08:00 committed by 老广
parent ed01f2f1fb
commit 22c9dfc0f2
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def get_asset_system_user_ids_with_actions_by_user(user: User, asset: Asset):
def has_asset_system_permission(user: User, asset: Asset, system_user: SystemUser):
systemuser_actions_mapper = get_asset_system_user_ids_with_actions_by_user(user, asset)
actions = systemuser_actions_mapper.get(system_user.id, [])
actions = systemuser_actions_mapper.get(system_user.id, 0)
if actions:
return True
return False