From 2db93817e787d5c20d34a680251c48e2900b5247 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 --- .../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 6786c24..47d1893 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