I have successfully implemented a security filter so that records are limited to the their 'owner'. For one of the user roles, however, i need what is basically an 'or' clause when setting the security filter.
here is my current statement (contained in the getPreferences function of the applicationdelegate.php file)
- Code: Select all
$mytable->setSecurityFilter(array('manager_id'=>$user->val('employee_id')));
I need to filter the results on this condition:
manager_id = employee_id
or
project_manager_id = employee_id
How do i accomplish this ?
as always..thanks for the help!