From f72764e9a5806cc7a8da5fd65dcd73b966e3dc4c Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 30 Oct 2024 12:10:27 +0000 Subject: [PATCH] Bug 38298: Add permission checks to EDI breadcrumbs Test plan: 1) Choose a staff patron and assign them the following permissions - catalogue - edi_manage 2) Enable the edifact syspref 3) Log in as the chosen staff patron and navigate to Acquisitions > EDI accounts from the left hand menu 4) The breadcrumb will contain Administration 5) Clicking this will result in a permissions error 6) Apply patch 7) Refresh the page and the breadcrumb will now read Acquisitions and will work Signed-off-by: Brendan Gallagher --- .../intranet-tmpl/prog/en/modules/admin/edi_accounts.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt index daa7abfefb..fb86506e6f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt @@ -31,7 +31,11 @@ [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] - Administration + [% IF CAN_user_parameters %] + Administration + [% ELSE %] + Acquisitions + [% END %] [% END %] [% IF acct_form || delete_confirm %] -- 2.39.5