Skip to content

Commit

Permalink
fix: assign roles to owner instead of operator
Browse files Browse the repository at this point in the history
Signed-off-by: Lin-1997 <[email protected]>
  • Loading branch information
Lin-1997 authored and nobodyiam committed Aug 3, 2024
1 parent 49bd8cc commit 8f716ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ public void initAppRoles(App app) {
//assign modify、release namespace role to user
rolePermissionService.assignRoleToUsers(
RoleUtils.buildNamespaceRoleName(appId, ConfigConsts.NAMESPACE_APPLICATION, RoleType.MODIFY_NAMESPACE),
Sets.newHashSet(operator), operator);
Sets.newHashSet(app.getOwnerName()), operator);
rolePermissionService.assignRoleToUsers(
RoleUtils.buildNamespaceRoleName(appId, ConfigConsts.NAMESPACE_APPLICATION, RoleType.RELEASE_NAMESPACE),
Sets.newHashSet(operator), operator);
Sets.newHashSet(app.getOwnerName()), operator);

}

Expand Down

0 comments on commit 8f716ac

Please sign in to comment.