From 2bb82b50a1bbb1ab61249f50c9a50fcb09585e09 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 --- .../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 6068ebcfe56..bd6b58ad8a3 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 @@ -29,7 +29,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.3 (Apple Git-146)