Bug 15571 reserveforothers permission does not remove Search to hold button from...
authorBriana <brianagreally@gmail.com>
Mon, 18 Jan 2016 22:32:14 +0000 (22:32 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 05:41:21 +0000 (05:41 +0000)
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 <oleonard@myacpl.org>
Signed-off-by: Briana <brianagreally@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc

index 641bbad..f3bcd76 100644 (file)
@@ -165,8 +165,12 @@ function searchToHold(){
                 [% END %]
             </ul>
     </div>
-    <a id="searchtohold" class="btn btn-small" href="#"><i class="fa fa-search"></i> Search to hold</a>
-    <div class="btn-group">
+
+       [% IF ( CAN_user_reserveforothers ) %]
+       <a id="searchtohold" class="btn btn-small" href="#"><i class="fa fa-search"></i> Search to hold</a>
+       [% END %]
+
+         <div class="btn-group">
         <button class="btn btn-small dropdown-toggle" data-toggle="dropdown">More <span class="caret"></span></button>
             <ul class="dropdown-menu">
                 [% IF ( CAN_user_borrowers ) %]