Skip to content

Commit

Permalink
fixes file access request email perm check
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Jun 26, 2024
1 parent 9fc757f commit bcc50aa
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 bcc50aa

Please sign in to comment.