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

#7030
Shawon Chowdhury
Moderator

@JuacOHI,

​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 🙂

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!