Skip to content

Commit 184f64b

Browse files
authored
fix: Permission verification error (#6727)
1 parent ee4d086 commit 184f64b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,15 @@ def reset_workspace_role(role_id, workspace_id, role_dict):
195195
if system_role == role_id:
196196
return [role_id]
197197
else:
198-
return [f"{role_id}:/w/{workspace_id}", role_id]
198+
return [f"{role_id}:w:{workspace_id}", role_id]
199199
else:
200200
r = role_dict.get(role_id)
201201
if r is None:
202202
return []
203203
role_type = role_dict.get(role_id).type
204204
if system_role == role_type:
205205
return [RoleConstants.EXTENDS_ADMIN.value.name]
206-
return [f"EXTENDS_{role_type}:/w/{workspace_id}"]
206+
return [f"EXTENDS_{role_type}:w:{workspace_id}"]
207207

208208

209209
def get_role_list(user, workspace_user_role_mapping_model, workspace_model, role_model, role_permission_mapping_model):

0 commit comments

Comments
 (0)