Bug 13105: Columns misplaced in member search result
authorRafal Kopaczka <rkk0@poczta.onet.pl>
Fri, 17 Oct 2014 14:22:04 +0000 (16:22 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 30 Oct 2014 04:27:08 +0000 (01:27 -0300)
When staff member, without manage_patron_lists permissions, search for
patrons on result page, he gets table with additional column in head
table.
Test plan:
Log in as staff member without manage_patron_lists permissions, search
for any patron.
Check that table with results is fine now.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Fixes problem by adding a permission check to the template.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt

index f167e32..2d302c4 100644 (file)
@@ -357,7 +357,9 @@ function filterByFirstLetterSurname(letter) {
             <table id="memberresultst">
               <thead>
                 <tr>
+                [% IF CAN_user_tools_manage_patron_lists %]
                   <th>&nbsp;</th>
+                [% END %]
                   <th>Card</th>
                   <th>Name</th>
                   <th>Category</th>