From 13092c655529f44377f0b989960f560d62d635ba Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 15 Mar 2022 10:43:05 +0000 Subject: [PATCH] Bug 30288: (follow-up) Add permissions check This follow-up wraps the system preference links in a check for "parameters_manage_sysprefs" permission so that the links don't display to those without permission to access system preferences. --- .../prog/en/modules/tools/additional-contents.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index bad4e6b08d..e36d2b3b56 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -300,9 +300,9 @@ [% ELSE %] See News [% END %] - [% IF Koha.Preference("OPACEnhancementPreferencesLinks") %] - | See OPACUserJS - | See OPACUserCSS + [% IF ( CAN_user_parameters_manage_sysprefs ) %] + | OPACUserJS + | OPACUserCSS [% END %] [% IF additional_contents.count %] -- 2.20.1