Skip to content

Commit

Permalink
Merge pull request #1059 from OneCommunityGlobal/ambika-hotfix-tangib…
Browse files Browse the repository at this point in the history
…le-time-checkbox-error

ambika hotfix error on click of tangible checkbox in timelog
  • Loading branch information
one-community authored Aug 15, 2024
2 parents 9ca0292 + dac908a commit 734f777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/timeEntryController.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,8 @@ const timeEntrycontroller = function (TimeEntry) {
const canEditTimeEntryDescription = await hasPermission(req.body.requestor, 'editTimeEntryDescription');
const canEditTimeEntryDate = await hasPermission(req.body.requestor, 'editTimeEntryDate');
const canEditTimeEntryIsTangible = (isForAuthUser
? (await hasPermission(req.body.requestor, 'toggleTangibleTime'))
: (await hasPermission(req.body.requestor, 'editTimeEntryToggleTangible')));
? !(await hasPermission(req.body.requestor, 'toggleTangibleTime'))
: !(await hasPermission(req.body.requestor, 'editTimeEntryToggleTangible')));

const isNotUsingAPermission =
(!canEditTimeEntryTime && isTimeModified) ||
Expand Down

0 comments on commit 734f777

Please sign in to comment.