Skip to content
Snippets Groups Projects
Commit 5a777fb7 authored by Peter Rotich's avatar Peter Rotich
Browse files

Show expanded staff report IF staff is allowed

parent 5a002fa0
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,8 @@ class OverviewReportAjaxAPI extends AjaxController {
(T1.staff_id='.db_input($thisstaff->getId())
.(($depts=$thisstaff->getManagedDepartments())?
(' OR T1.dept_id IN('.implode(',', db_input($depts)).')'):'')
.(($thisstaff->canViewStaffStats())?
(' OR T1.dept_id IN('.implode(',', db_input($thisstaff->getDepts())).')'):'')
.')'
)
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment