Home › Forums › HRM › Roles or Edit only in the same Location › Reply To: Roles or Edit only in the same Location
May 14, 2017 at 11:11 pm
#7066
JuacOHI
Participant
Thanks! That works really good and I’m sure that a lot people will be happy with this easy fix 😀
btw you copy/pasted it wront, because it should be:
$manager = new \WeDevs\ERP\HRM\Employee( get_current_user_id() );
if ( $employee->get_work_location_id() === $manager->get_work_location_id() ) {
// write your code here
}
You missed the “$man”
Thanks for the quick help!!