For our project there are various roles created like :
employee, employee_manager, hr_employee, hr_manager, admin
We have a functionality where the employee can use his privacy setting to hide his personal data from other employees. Currently the time sheet of one employee is hidden from other employee using prefilter with dbo.tsf_usr() functionality.
My question is, if it is a manager role then he should be able to see his team’s time sheet.
How can this be achieved?