Bugzilla – Attachment 131765 Details for
Bug 30288
Provide links to OPACUserJS and OPACUserCSS from News/HTML customizations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30288: (follow-up) Add permissions check
Bug-30288-follow-up-Add-permissions-check.patch (text/plain), 1.66 KB, created by
Aleisha Amohia
on 2022-03-16 04:01:05 UTC
(
hide
)
Description:
Bug 30288: (follow-up) Add permissions check
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2022-03-16 04:01:05 UTC
Size:
1.66 KB
patch
obsolete
>From 07f7a61ffadfe675059801e81eba65e0c76f83af Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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. > >Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> >--- > .../intranet-tmpl/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 bad4e6b08d0..e36d2b3b56c 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 <a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> > [% END %] >- [% IF Koha.Preference("OPACEnhancementPreferencesLinks") %] >- | See <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserJS'>OPACUserJS</a> >- | See <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserCSS'>OPACUserCSS</a> >+ [% IF ( CAN_user_parameters_manage_sysprefs ) %] >+ | <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserJS'>OPACUserJS</a> >+ | <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserCSS'>OPACUserCSS</a> > [% END %] > > [% IF additional_contents.count %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30288
:
131648
|
131698
|
131704
|
131705
|
131765
|
133355
|
133510
|
133612
|
133613
|
133783