From de33aca49aee9c2e94c8f3dae14f76fe0cb7ced1 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 13 Jun 2023 19:41:48 +0000 Subject: [PATCH] Bug 34002: Check for stage_marc_import permssion -1 Log in to the staff client as a user who has Acquisition management (acquisition) permissions but not the stage_marc_import (tools) permission. -2 Go to Acquisitions and Add to a basket. -3 Select 'From a new file' -4 You will be logged out as the user does not have percussion to visit that page. -5 Apply patch -6 Try again, you will not see the link for 'From a new file' if you don't have the permssion. -7 Give the user the stage_marc_import, you will now see the link Signed-off-by: Sam Lau Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 4e1a2f148c91bc2438410f3e71c91f8deb889b91) Signed-off-by: Martin Renvoize (cherry picked from commit 44ab05d7b7ff313d1cd22489518dc9f771fdd53c) Signed-off-by: Matt Blenkinsop --- .../prog/en/includes/acquisitions-add-to-basket.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-add-to-basket.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-add-to-basket.inc index f330237f37..6c1de59cbc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-add-to-basket.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-add-to-basket.inc @@ -15,7 +15,7 @@
  • From a new (empty) record
  • From existing orders (copy)
  • From an external source
  • -
  • From a new file
  • + [% IF ( CAN_user_tools_stage_marc_import ) %]
  • From a new file
  • [% END %]
  • From a staged file
  • [% IF ( CAN_user_circulate ) %]
  • From titles with highest hold ratios
  • [% END %] -- 2.39.5