00 Day
00 Hour
00 Min
00 Sec

Reply To: Roles or Edit only in the same Location

Home 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 query

We will reply to you very soon :)