You can restrict an unauthorized user from deleting a contact from the Contacts module by adding the permission level rule britecore/contacts/removeContact. When this rule is in place, the red X icon used to delete contacts is hidden from the Contacts List screen.
To add the permission level rule:
- Navigate to Settings > System Wide > Permissions.
- In the Permission Levels section, select the pencil icon next to the permission level you want to add the rule to, such as Employee or Underwriter.
Note: If you don’t see the permission level you want to add the rule to, you may need to first add the permission level. See Add permission level.
- Select + Add Rule, to add a new rule.
- In the Access column, select the None radio button.
Note: If you select the Read/Write radio button, the user will continue to have access to delete contacts from the Contacts module.
- From the Rule dropdown list, select britecore/contacts/removeContact. BriteCore will automatically save the new rule.
- In the Role Permissions section, ensure the role that matches the permission level that you added the rule to is assigned the correct permission level. For example, if you added the permission level rule to the Employee role, ensure that Employee displays in the Employee Role Permissions dropdown list.
You can also prevent a user from deleting a contact’s role. Please see Restrict users from deleting a contact role for more information. Permission levels can also be set at the contact level in the Contacts module. See Permissions version 1 overview to learn more about the interaction between permission levels set at the role level and permission levels set at the contact level.