From 2bb15764955b3b05f19017265156d4ee60f13675 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 29 Aug 2017 21:41:32 +0000 Subject: [PATCH] Bug 17218: [FOLLOW-UP] Stop DB user from adding list by forcing URL To test: 1) Go to the url /virtualshelves/shelves.pl?op=add_form&referer=add_form 2) Confirm an error message shows and the Save button cannot be clicked Sponsored-by: Catalyst IT Signed-off-by: Katrin Fischer Signed-off-by: Mark Tompsett --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index d3c4ac4..1cc962c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -254,6 +254,10 @@
+ [% IF loggedinuser == 0 %] +
Lists cannot be created or edited with the database administrator account.
+ [% END %] +
[% IF op == 'add_form' %] @@ -309,10 +313,14 @@
- + [% IF loggedinuser == 0 %] + + [% ELSE %] + + [% END %] [% IF referer == 'view' %] Cancel - [% ELSE %] + [% ELSE %] [% IF category == PUBLIC %] Cancel [% ELSE %] -- 2.1.4