I am new to Drupal.I am working on a timesheet application in Drupal.I have installed the listkeeper and timesaver modules.
Added 2 users - Manager & Employee1 and added 2 roles - Manager & Employee.In listkeeper entries I have made user 'Manager' as the supervisor to user Employee1.
User 'Manager' is having role 'Manager' and user 'Employee1' is having role 'Employee'

Role 'Manager' is having permission 'timesaver supervisor' and 'administer Timesaver'
Role 'Employee' does not have any permission. So while logging in the bottom section - Approval section is hidden.

But here I face 2 issues

1. The report section is also hidden for regular user - Employee1.
2. The report section for Manager is having the dropdown with all the employees.I would like to run reports for all the employees under that manager.
I need specific reports run by specific folks. For eg user Employee1 can run reports to see his own time entered. Manager should be able to run reports for him and user Employee1.

Please guide me to go about to achieve this.

Comments

_randy’s picture

Hi,

You use listkeeper to associate an employee to a supervisor. That is how a supervisor/manager is able to run reports only for their employees.

At this time, only some custom coding could let you achieve reports for an employee run by an employee.

vinsabraham’s picture

Thanks for the help.

I have few more doubts.

1.How can I show only the report section for Emplooyee1 whose role has permission "Timesaver supervisor" and hide the 'Approve Timesheets' section ? (In the dropdown of the 'Approve Timesheets' section is rightly not populated as there are no employees under Employee1 when I log in as user Employee1)
2.For user Manager, how can I run the report only for his employee - Employee?
3.Now the dropdown in the 'Aprrove Timesheets' when I log in as user Manager is showing employees under other managers also.How can I restrict this to employees under him?

I wonder if I am doing anything wrong. Any help would be greatly appreciated.

_randy’s picture

Any customizations to show/hide areas of the application would have to be done through custom modifications to the codebase.

vinsabraham’s picture

Thanks for the reply.
One more query

For user Manager, how can I run the report only for his employee - Employee?

Thanks in advance

_randy’s picture

Right now, to isolate a report down to a single employee would mean that you have to customize the report screens.

vinsabraham’s picture

Thanks for the help.