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 a6e4728 commit 9d42981
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public with sharing class OPP_OpportunityNamingBTN_CTRL {
OPP_OpportunityNaming.refreshOppNames(thisOpp);
try {
if (!UTIL_Permissions.canUpdate('Opportunity', 'Name')) {
throw new AuraHandledException(System.Label.commonAccessErrorMessage);
throw new UTIL_Permissions.InsufficientPermissionException(System.Label.commonAccessErrorMessage);
}
update thisOpp;
redirect = true;
Expand Down

0 comments on commit 9d42981

Please sign in to comment.