Skip to content

Commit 191e62f

Browse files
authored
fix: role user permission (#3453)
1 parent 25125ca commit 191e62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/common/auth/handle/impl/user_token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def get_permission_list(user,
229229
def reset_workspace_role(role_id, workspace_id, role_dict):
230230
if system_role_list.__contains__(role_id):
231231
if system_role == role_id:
232-
return role_id
232+
return [role_id]
233233
else:
234234
return [f"{role_id}:/WORKSPACE/{workspace_id}", role_id]
235235
else:
@@ -238,7 +238,7 @@ def reset_workspace_role(role_id, workspace_id, role_dict):
238238
return ''
239239
role_type = role_dict.get(role_id).type
240240
if system_role == role_type:
241-
return RoleConstants.EXTENDS_ADMIN.value.name
241+
return [RoleConstants.EXTENDS_ADMIN.value.name]
242242
return [f"EXTENDS_{role_type}:/WORKSPACE/{workspace_id}", f"EXTENDS_{role_type}"]
243243

244244

0 commit comments

Comments
 (0)