I am trying to create a security rule for HR11.1 for a group of employees that are all in a particular security location. I want them to be able to access themselves and other employees not in the same security location, but NOT be able to access employees in the same security location. The rule that I have written in HR11.1 is stated below in bold. I would think the rule stated below would fulfill my objective, but instead the employees are receiving a security violation on themselves as well as the others in their security location. Any suggestions?
if((user.getEmployeeId()!=form.EMP_EMPLOYEE)&&form.EMP_SEC_LOCATION=='PR')
'NO_ACCESS,'
else
'ALL_ACCESS,'
Thank you,
Lindsay