Skip to content

Commit

Permalink
Merge pull request #10657 from GlobalDataverseCommunityConsortium/IQS…
Browse files Browse the repository at this point in the history
…S/10656-filemanager_emails

IQSS/10656-fix permission check for request access notifications/emails
  • Loading branch information
sekmiller authored Jun 27, 2024
2 parents 887a401 + bcc50aa commit ba209ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ public boolean requestAccess(DataFile dataFile, GuestbookResponse gbr){

public void sendRequestFileAccessNotification(Dataset dataset, Long fileId, AuthenticatedUser requestor) {
Timestamp ts = new Timestamp(new Date().getTime());
permissionService.getUsersWithPermissionOn(Permission.ManageDatasetPermissions, dataset).stream().forEach((au) -> {
permissionService.getUsersWithPermissionOn(Permission.ManageFilePermissions, dataset).stream().forEach((au) -> {
userNotificationService.sendNotification(au, ts, UserNotification.Type.REQUESTFILEACCESS, fileId, null, requestor, true);
});
//send the user that requested access a notification that they requested the access
Expand Down

0 comments on commit ba209ad

Please sign in to comment.