Bug 11746 [QA Followup] display edit item link only if user has permission to edit items

Signed-off-by: Havilah Lyon <havilah@aflibrary.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Kyle Hall 2014-02-13 09:21:28 -05:00 committed by Galen Charlton
parent d8b7e635e0
commit c8ad1e6928

View file

@ -540,7 +540,7 @@ function verify_images() {
[% IF ( hostrecords ) %]<th>Host records</th>[% END %]
[% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
[% IF ( ShowCourseReserves ) %]<th>Course Reserves</th>[% END %]
<th>Edit</th>
[% IF ( CAN_user_editcatalogue_edit_items ) %]<th>Edit</th>[% END %]
</tr>
</thead>
<tbody>
@ -714,7 +714,9 @@ function verify_images() {
[% END %]
</td>
[% END %]
<td><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber %]&itemnumber=[% item.itemnumber %]#edititem">Edit</a></td>
[% IF ( CAN_user_editcatalogue_edit_items ) %]
<td><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber %]&itemnumber=[% item.itemnumber %]#edititem">Edit</a></td>
[% END %]
</tr>
[% END %]
</tbody>