From 7fd9119cd8c8dfdbbef4e05cbae55209e07368a2 Mon Sep 17 00:00:00 2001 From: Briana Date: Mon, 18 Jan 2016 22:32:14 +0000 Subject: [PATCH] Bug 15571 reserveforothers permission does not remove Search to hold button from patron account 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 Signed-off-by: Briana Signed-off-by: Kyle M Hall Signed-off-by: Brendan A Gallagher (cherry picked from commit f118addf0f559448cc8ffc13a522ff4b35718fd3) Signed-off-by: Julian Maurice --- .../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 641bbad773..f3bcd765f0 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 %] + +