Skip to content

Commit 2c0a8af

Browse files
authored
fix: add extends role (#3430)
1 parent 71ad83a commit 2c0a8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def reset_workspace_role(role_id, workspace_id, role_dict):
233233
return f"{role_id}:/WORKSPACE/{workspace_id}"
234234
else:
235235
r = role_dict.get(role_id)
236-
if r is not None:
236+
if r is None:
237237
return ''
238238
role_type = role_dict.get(role_id).type
239239
if system_role == role_type:

0 commit comments

Comments
 (0)