Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新建应用时权限赋予错误 #5181

Closed
3 tasks done
Lin-1997 opened this issue Jul 23, 2024 · 2 comments · Fixed by #5191
Closed
3 tasks done

新建应用时权限赋予错误 #5181

Lin-1997 opened this issue Jul 23, 2024 · 2 comments · Fixed by #5191

Comments

@Lin-1997
Copy link
Contributor

  • I have checked the discussions
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Describe the bug
A用户新建一个应用,将应用负责人、应用管理员都仅设置为B用户。此时也为A用户赋予了默认namespace的编辑、发布权限,不应该给A用户任何权限的。

To Reproduce
Steps to reproduce the behavior:
1.新建一个应用,将应用负责人、应用管理员都仅设置为B用户

Expected behavior
A用户没有任何权限

Additional Details & Logs

//assign modify、release namespace role to user
rolePermissionService.assignRoleToUsers(
RoleUtils.buildNamespaceRoleName(appId, ConfigConsts.NAMESPACE_APPLICATION, RoleType.MODIFY_NAMESPACE),
Sets.newHashSet(operator), operator);
rolePermissionService.assignRoleToUsers(
RoleUtils.buildNamespaceRoleName(appId, ConfigConsts.NAMESPACE_APPLICATION, RoleType.RELEASE_NAMESPACE),
Sets.newHashSet(operator), operator);

应该赋权限给用户Sets.newHashSet(app.getOwnerName()),而不是Sets.newHashSet(operator)

  • Version 2.2.0
  • Error logs
  • Configuration
  • Platform and Operating System
@nobodyiam
Copy link
Member

I believe this is a bug, would you please help to submit a pull request to fix it?

@Lin-1997
Copy link
Contributor Author

Lin-1997 commented Jul 29, 2024

I believe this is a bug, would you please help to submit a pull request to fix it?

see this #5191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants