Skip to content

Commit 94ba54d

Browse files
Merge pull request #1938 from OneCommunityGlobal/Anthony/Warning-Tracker-Followup
Anthony/Warning-Tracker-Followup
2 parents 941e873 + 0ba5e10 commit 94ba54d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/controllers/userProfileController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ const userProfileController = function (UserProfile, Project) {
18471847
const newInfringement = {
18481848
...req.body.blueSquare,
18491849
// date:validDate,
1850-
date: new Date(inputDate),
1850+
date: inputDate,
18511851

18521852
// date: req.body.blueSquare.date || new Date(), // default to now if not provided
18531853
// Handle reason - default to 'missingHours' if not provided
@@ -1901,6 +1901,7 @@ const userProfileController = function (UserProfile, Project) {
19011901
);
19021902
res.status(200).json({
19031903
_id: record._id,
1904+
infringements: record.infringements,
19041905
});
19051906

19061907
// update alluser cache if we have cache

src/utilities/createInitialPermissions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ const permissionsRoles = [
202202
'highlightEligibleBios',
203203
'manageTimeOffRequests',
204204
'changeUserRehireableStatus',
205-
'setTrackingManagement',
206205
'changeUserStatus',
207206
'viewTrackingOverview',
208207
'issueTrackingWarnings',
@@ -298,6 +297,7 @@ const permissionsRoles = [
298297
'manageFAQs',
299298
'manageHGNAccessSetup',
300299
'setFinalDay',
300+
'resendBlueSquareAndSummaryEmails',
301301
],
302302
},
303303
];

0 commit comments

Comments
 (0)