Reply To: Roles or Edit only in the same Location

Front Page Forums HRM Roles or Edit only in the same Location Reply To: Roles or Edit only in the same Location

#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:
$man​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
}

You missed the “$man”

Thanks for the quick help!!

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We received your message

We will reach you with your email address soon. Thank you for the time!