Skip to content

Commit

Permalink
Merge pull request #198 from PaulBoon/DD-1597-FixAccessRequestNotific…
Browse files Browse the repository at this point in the history
…ations

Fixed access request notifications for users with ManageFilePermissions
  • Loading branch information
PaulBoon authored Jun 28, 2024
2 parents 11edb94 + a0ca4df commit 6657fe4
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 6657fe4

Please sign in to comment.