Cannot access bean data inside a custom Entry Point, and no errors are reported by either PHP or SugarCRM (i.e. empty bean array or empty bean relationships)
Solution:
Warning: This implies a security risk as anyone can access the bean now.
if (empty($current_user) || empty($current_user->id)) {
$current_user = new User();
$current_user->getSystemUser(); // or any other user bean
}
No comments:
Post a Comment