Skip to content

Commit

Permalink
Fixed permissions problem #2986
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosjepard authored and hmiguim committed Dec 13, 2023
1 parent 27d9b29 commit a44b200
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ protected static BrowseAIPBundle retrieveBrowseAipBundle(User user, IndexedAIP a
bundle.setAIPAncestors(ancestors);

if (!UserUtility.hasPermissions(user, RodaConstants.PERMISSION_METHOD_LIST_USERS)) {
Permissions aipPermissions = bundle.getAip().getPermissions();
Permissions p = new Permissions();
p.setUserPermissions(user.getId(), aipPermissions.getUserPermissions(user.getId()));
bundle.getAip().setPermissions(p);
}

Expand Down

0 comments on commit a44b200

Please sign in to comment.