Skip to content

Commit

Permalink
Change exception class to UTIL_Permissions.InsufficientPermissionExce…
Browse files Browse the repository at this point in the history
…ption
  • Loading branch information
npsp-reedestockton committed Oct 19, 2023
1 parent 4956146 commit 9cdb366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions force-app/main/default/classes/RD2_PauseForm_CTRL.cls
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public with sharing class RD2_PauseForm_CTRL {
}

if (!hasFieldReadAccess(queryFields)) {
throwAuraHandledException(System.Label.commonAccessErrorMessage);
throw new UTIL_Permissions.InsufficientPermissionException(System.Label.commonAccessErrorMessage);
}

RD2_QueryService queryService = new RD2_QueryService();
Expand Down Expand Up @@ -284,7 +284,7 @@ public with sharing class RD2_PauseForm_CTRL {
Boolean hasScheduleChanged = false;
try {
if (!hasAccess()) {
throwAuraHandledException(System.Label.commonAccessErrorMessage);
throw new UTIL_Permissions.InsufficientPermissionException(System.Label.commonAccessErrorMessage);
}

PauseData pause = (PauseData) JSON.deserialize(jsonPauseData, PauseData.class);
Expand Down

0 comments on commit 9cdb366

Please sign in to comment.