Skip to content

Commit

Permalink
Merge branch 'UAT' into v1.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul McCafferty committed Apr 19, 2021
2 parents 68d0768 + 3983716 commit 82ba85f
Show file tree
Hide file tree
Showing 6 changed files with 275 additions and 574 deletions.
5 changes: 4 additions & 1 deletion src/resources/datarequest/datarequest.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,10 @@ module.exports = {
case constants.notificationTypes.SUBMITTED:
// 1. Create notifications
// Custodian notification
if (_.has(accessRecord.datasets[0].toObject(), 'publisher.team.users')) {
if (
_.has(accessRecord.datasets[0].toObject(), 'publisher.team.users') &&
accessRecord.datasets[0].publisher.allowAccessRequestManagement
) {
// Retrieve all custodian user Ids to generate notifications
custodianManagers = teamController.getTeamMembersByRole(accessRecord.datasets[0].publisher.team, constants.roleTypes.MANAGER);
custodianUserIds = custodianManagers.map(user => user.id);
Expand Down
Loading

0 comments on commit 82ba85f

Please sign in to comment.