AnsweredAssumed Answered

Security Using Roles and Custom Fields in a Base Module

Question asked by Zachary Miller on Mar 18, 2015
SugarCRM version 7.5.1.0

Is it possible to modify a base module (like Contacts) to create custom security?  Once a user clicks on a Contact and prior to actually navigating to that Contact, I would like to check a custom field on the Contact and then verify that the user is a Role member that is allowed to view that Contact.

As an example: a user, Max, clicks on a Contact, Margaret.  Margaret has the custom checkbox 'secret_c' checked.  Max has the Role 'View Secret', so is able to go to Margaret's Contact record.  If he did not have that Role, Max would be directed to a security error page.

Outcomes