Home › Forums › HRM › Roles or Edit only in the same Location › Reply To: Roles or Edit only in the same Location
May 11, 2017 at 9:56 am
#7030
Shawon Chowdhury
Moderator
I’ve added a new function get_work_location_id
. So now you can write condition like this…
ager = new \WeDevs\ERP\HRM\Employee( get_current_user_id() );
if ( $employee->get_work_location_id() === $manager->get_work_location_id() ) {
// write your code here
}
Thanks 🙂