From 1da4dcec000ba4cef13d4e66c6ccfeadf41824f0 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 21 May 2026 12:23:06 -0400 Subject: [PATCH] Bug 42667: Hide edit controls as needed Test plan: 1) Apply this patch set 2) Run updatedatabase.pl 3) Restart all the things! 4) Create 2 users with create_reports and not edit_all_reports 5) Create reports with each 6) Note that each cannot edit the others reports 7) Create a user with create_reports and edit_all_reports 8) Note the this user can edit reports from the previous two users Edit button placements to look for: * Reports table row * Actions menu * Toolbar Signed-off-by: Kyle M Hall Signed-off-by: Brendan Lawlor Signed-off-by: Martin Renvoize Signed-off-by: Pedro Amorim --- .../intranet-tmpl/prog/en/includes/reports-toolbar.inc | 8 +++++--- .../prog/en/modules/reports/guided_reports_start.tt | 9 +++++++-- reports/guided_reports.pl | 1 + 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc index 3181e8c28c..2d39bfe6f6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc @@ -28,9 +28,11 @@