Bug 11746 [QA Followup] display edit item link only if user has permission to edit...
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 13 Feb 2014 14:21:28 +0000 (09:21 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 26 Feb 2014 15:56:30 +0000 (15:56 +0000)
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>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 1a3ce6a..1e1fcd2 100644 (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>