Custom Security [message #224023] |
Mon, 12 March 2007 12:29 |
JoeD
Messages: 3 Registered: December 2006 Location: London
|
Junior Member |
|
|
Hi,
I’m trying to write some custom security code that would allow users to only see employees from their own assignment category in SSHR, so when they log into SSHR and use My List – only employees from the same organization are called back.
The code works for my organization but other employees cannot see their own organization but can see mine, is there some reason for this for instance does it inherit the assignment from the creator?!
The code is:
ASSIGNMENT.organization_id in (select paf.organization_id
from per_all_people_f ppf,
per_all_assignments_f paf
where ppf.business_group_id = 41
and sysdate between ppf.effective_start_date and ppf.effective_end_date
and sysdate between paf.effective_start_date and paf.effective_end_date
and ppf.person_id = paf.person_id
and ppf.person_id = fnd_global.employee_id)
any help would be much appreciated!
Thanks,
Joe
|
|
|
|
|
|