fix: user role (#3362)

This commit is contained in:
shaohuzhang1 2025-06-24 11:14:51 +08:00 committed by GitHub
parent a8127efd86
commit 1a5db6b5ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,7 +242,7 @@ def get_role_list(user,
workspace_user_role_mapping.workspace_id)
for
workspace_user_role_mapping in
workspace_user_role_mapping_list] + [user.role]
workspace_user_role_mapping_list]
cache.set(key, workspace_list, version=version)
return role_list
else: