Bug 8230: (follow-up) don't link to basket unless user has appropriate permissions

With this patch, the basket number on the bib details page is linked
to the basket management page only if the staff user has the appropriate
permissions.

To test:

[1] Log in as a user with the acquisition/order_manage permission.
    Bring up a bib record that is attached to an order and verify
    that the basket number is an active link.
[2] Log in as a user that doesn't have the acquisition/order_manage
    permission.  Verify that the basket number displayed on the bib
    details page is not a hyperlink.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Galen Charlton 2013-12-13 23:04:59 +00:00
parent c5a6ee4000
commit a050ca83b7
1 changed files with 5 additions and 1 deletions

View File

@ -841,7 +841,11 @@ function verify_images() {
<tbody>
[% FOR order IN orders %]
<tr>
<td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketname %]</a></td>
<td>[% IF CAN_user_acquisition_order_manage %]
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno %]">[% order.basketname %]</a>
[% ELSE %]
[% order.basketname %]
[% END %]</td>
<td>[% order.ordernumber %]</td>
<td><span title="[% order.creationdate %]">[% order.creationdate | $KohaDates%]</span></td>
<td><span title="[% order.datereceived %]">[% order.datereceived | $KohaDates%]</span></td>