diff --git a/force-app/main/default/customPermissions/EDRD_SuperUser.customPermission-meta.xml b/force-app/main/default/customPermissions/EDRD_SuperUser.customPermission-meta.xml new file mode 100644 index 000000000..16324e6ea --- /dev/null +++ b/force-app/main/default/customPermissions/EDRD_SuperUser.customPermission-meta.xml @@ -0,0 +1,6 @@ + + + Created for EDRD-Super user Permission set. + false + + diff --git a/force-app/main/default/objects/Account/validationRules/MoH_Standard_User_Rule.validationRule-meta.xml b/force-app/main/default/objects/Account/validationRules/MoH_Standard_User_Rule.validationRule-meta.xml index fa46a3ef9..0b5ed879c 100644 --- a/force-app/main/default/objects/Account/validationRules/MoH_Standard_User_Rule.validationRule-meta.xml +++ b/force-app/main/default/objects/Account/validationRules/MoH_Standard_User_Rule.validationRule-meta.xml @@ -7,6 +7,7 @@ NOT(ISNEW()), NOT($Permission.SA_Team_Lead), NOT($Permission.EDRD_MOH_STAFF), NOT($Permission.EDRD_PHSA_PSP_Staff), +NOT($Permission.EDRD_SuperUser), ESA_Bypass_Validation__pc = FALSE) You don't have permission to edit the Account Name. diff --git a/force-app/main/default/permissionsets/EDRD_Super_User.permissionset-meta.xml b/force-app/main/default/permissionsets/EDRD_Super_User.permissionset-meta.xml index 5f229950f..860d03045 100644 --- a/force-app/main/default/permissionsets/EDRD_Super_User.permissionset-meta.xml +++ b/force-app/main/default/permissionsets/EDRD_Super_User.permissionset-meta.xml @@ -92,6 +92,10 @@ true ESA_CMD_Super_Stamps__mdt + + true + EDRD_SuperUser + true Account.Description