Skip to content

Commit 667edc9

Browse files
committed
let superusers see LF content
1 parent 6ab536c commit 667edc9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/PermissionServiceBean.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,8 @@ public List<RoleAssignment> getEffectiveRoleAssignments(AuthenticatedUser user,
10691069
* Determines if a user can view a dataset version based on its release status
10701070
* and the supplied Locally FAIR role assignees.
10711071
*
1072-
* @param DataversRequest The request containing the user and Ip info (for IPgroups)
1073-
* @param DvObject the dvObject that may have locallyFairAssignees
1072+
* @param req The request containing the user and Ip info (for IPgroups)
1073+
* @param dvObject the dvObject that may have locallyFairAssignees
10741074
* @return true if the user has locally FAIR access
10751075
*/
10761076
public boolean hasLocallyFAIRAccess(DataverseRequest req, DvObject dvObject) {
@@ -1084,6 +1084,9 @@ public boolean hasLocallyFAIRAccess(DataverseRequest req, DvObject dvObject) {
10841084
Set<RoleAssignee> userAndGroups = new HashSet<>(groupService.groupsFor(req));
10851085
User user = req.getUser();
10861086
if (user.isAuthenticated()) {
1087+
if(user.isSuperuser()) {
1088+
return true;
1089+
}
10871090
userAndGroups.add(user);
10881091
}
10891092

0 commit comments

Comments
 (0)