Skip to content

Commit

Permalink
Merge pull request #21065 from Shenali-SJ/actions-integration-tests
Browse files Browse the repository at this point in the history
Remove unnecessary permissions from the user
  • Loading branch information
ashanthamara authored Sep 5, 2024
2 parents 7053b98 + fe4574c commit f12d3e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,22 +404,11 @@ private List<Permission> addPermissions(List<String> customScopes) {

List<Permission> userPermissions = new ArrayList<>();
Collections.addAll(userPermissions,
new Permission(INTERNAL_ACTION_MANAGEMENT_VIEW),
new Permission(INTERNAL_ACTION_MANAGEMENT_CREATE),
new Permission(INTERNAL_ACTION_MANAGEMENT_UPDATE),
new Permission(INTERNAL_ACTION_MANAGEMENT_DELETE),

new Permission(INTERNAL_ORG_USER_MANAGEMENT_LIST),
new Permission(INTERNAL_ORG_USER_MANAGEMENT_VIEW),
new Permission(INTERNAL_ORG_USER_MANAGEMENT_CREATE),
new Permission(INTERNAL_ORG_USER_MANAGEMENT_UPDATE),
new Permission(INTERNAL_ORG_USER_MANAGEMENT_DELETE),

new Permission(INTERNAL_APPLICATION_MANAGEMENT_VIEW),
new Permission(INTERNAL_APPLICATION_MANAGEMENT_UPDATE),

new Permission(INTERNAL_API_RESOURCE_VIEW),
new Permission(INTERNAL_API_RESOURCE_CREATE)
new Permission(INTERNAL_ORG_USER_MANAGEMENT_DELETE)
);
customScopes.forEach(scope -> userPermissions.add(new Permission(scope)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,22 +347,11 @@ private List<Permission> addPermissions(List<String> customScopes) {
List<Permission> userPermissions = new ArrayList<>();

Collections.addAll(userPermissions,
new Permission(INTERNAL_ACTION_MANAGEMENT_VIEW),
new Permission(INTERNAL_ACTION_MANAGEMENT_CREATE),
new Permission(INTERNAL_ACTION_MANAGEMENT_UPDATE),
new Permission(INTERNAL_ACTION_MANAGEMENT_DELETE),

new Permission(INTERNAL_ORG_USER_MANAGEMENT_LIST),
new Permission(INTERNAL_ORG_USER_MANAGEMENT_VIEW),
new Permission(INTERNAL_ORG_USER_MANAGEMENT_CREATE),
new Permission(INTERNAL_ORG_USER_MANAGEMENT_UPDATE),
new Permission(INTERNAL_ORG_USER_MANAGEMENT_DELETE),

new Permission(INTERNAL_APPLICATION_MANAGEMENT_VIEW),
new Permission(INTERNAL_APPLICATION_MANAGEMENT_UPDATE),

new Permission(INTERNAL_API_RESOURCE_VIEW),
new Permission(INTERNAL_API_RESOURCE_CREATE)
new Permission(INTERNAL_ORG_USER_MANAGEMENT_DELETE)
);

customScopes.forEach(scope -> userPermissions.add(new Permission(scope)));
Expand Down

0 comments on commit f12d3e3

Please sign in to comment.