From 0b8bc9a13ebe45ebd4d1aaf790d908385c862343 Mon Sep 17 00:00:00 2001 From: Briana Date: Mon, 18 Jan 2016 22:32:14 +0000 Subject: [PATCH] [SIGNED-OFF] Bug 15571 reserveforothers permission does not remove Search to hold button from patron account Content-Type: text/plain; charset="utf-8" To Test: 1. Create a user without 'reserveforothers' permission 2. Go onto user details 3. 'Search to hold' button should not be there 4. Create a user with 'reserveforothers' permission 5. Repeat steps 6. 'Search to Hold' button should be there Signed-off-by: Owen Leonard --- koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc index 641bbad..f3bcd76 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -165,8 +165,12 @@ function searchToHold(){ [% END %] - Search to hold -
+ + [% IF ( CAN_user_reserveforothers ) %] + Search to hold + [% END %] + +