Bug 13105: Columns misplaced in member search result

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>
This commit is contained in:
Rafal Kopaczka 2014-10-17 16:22:04 +02:00 committed by Tomas Cohen Arazi
parent 394d16001d
commit 5e5f0ee283
1 changed files with 2 additions and 0 deletions

View 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>