Commit 163ab81e authored by Dominique Lenoir's avatar Dominique Lenoir

Corrected weekly_report.tcl to respect page contract: "- Have the permission...

Corrected weekly_report.tcl to respect page contract: "- Have the permission to add absences AND have at least some absences logged"
parent ac0b7a75
Pipeline #1124 failed with stages
......@@ -490,14 +490,11 @@ UNION
-- Users with the permissions to add absences
select distinct
party_id
from acs_object_party_privilege_map m
from acs_object_party_privilege_map m,
im_user_absences abs
where m.object_id = :subsite_id
and m.privilege = 'add_absences'
UNION
-- Users who have actually logged absences
select distinct
owner_id as party_id
from im_user_absences
and abs.owner_id = m.party_id
"
set cc_filter_where ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment