AnsweredAssumed Answered

ACLField::hasAccess() field level access control problem

Question asked by mickeytang mickeytang on Aug 18, 2015
Latest reply on Mar 14, 2018 by Doddy Amijaya
I am checking field level access control in a custom endpoint.
I found the following code from the developer blog

ACLField::hasAccess($field, $module, $GLOBALS['current_user']->id, $is_owner);  
The following is my custom code

ACLField::hasAccess("recordviewname_c", "drawe_drawertest", $GLOBALS['current_user']->id, false);  
However, the hasAccess() function keep returning 4 only, even i set the Field Permissions to none/read only.

Is there any solution or alternative method ? I am customizing Sugarcrm 7.6 Enterprise. Thanks