Hi, Steve.
I believe there is a way to do it easily and without custom field, just a after retrieve logic hook.
If you want to enable access of Notes related to Project only for admin users, you could follow these steps:
1. create a new logic hook (see sugarcrm.com/wiki for documentation;
This logic hook could have the code:
PHP Code:
global $current_user;
if($focus->parent_type == 'Project' && ! is_admin($current_user)) {
$focus = null;
}
In the SugarCRM architecture if the retrieve function of SugarBean returns null, then the action dies with restrict access to admin users.
Estimate: 2 hours.
Cheers
--
André Lopes
Lâmpada Global Services
Rua Bela Cintra, 299 conjunto. 51
São Paulo, SP 01415-000
tel1. 55 11 3237-3110
cel. 55 11 7636-5859
e-mail: info@lampadacrm.com.br
Bookmarks