From b0425fd56c45eb91a45ee8d8fcd0e7b23cad5a24 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 --- .../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 9dd7ea4..f7543a4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -546,6 +546,10 @@ function AdjustRemark() {
+ [% IF loggedinuser == 0 %] +
Lists cannot be created or edited with the database administrator account.
+ [% END %] +
[% IF op == 'add_form' %] @@ -601,10 +605,14 @@ function AdjustRemark() {
- + [% IF loggedinuser == 0 %] + + [% ELSE %] + + [% END %] [% IF referer == 'view' %] Cancel - [% ELSE %] + [% ELSE %] [% IF category == PUBLIC %] Cancel [% ELSE %] -- 2.1.4