From 1ce46c3f4b5d84e5cb81c45881b6ffb8e8c7e592 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Sun, 22 Dec 2013 22:59:14 +0100 Subject: [PATCH] Bug 11434 - in late order page remove the link around basket for user without required rights Content-Type: text/plain; charset="utf-8" This patch removes the link around basket number in late orders page if the user does not have order_manage permission. To test (you must have some late orders...): A. With a user with order_manage permission Go to lateorders.pl page Check you can display the basket by clicking on the basket number displayed in "basket" column B. With a user without order_manage permission Go to lateorders.pl page Check there is no link around the basket number displayed for each order --- .../prog/en/modules/acqui/lateorders.tt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt index c76cf2d..1954d2a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -157,9 +157,12 @@ $(document).ready(function() {

[% lateorder.budget %]

-

- [% lateorder.basketno %] - +

+ [% IF ( CAN_user_acquisition_order_manage ) %] + [% lateorder.basketno %] + [% ELSE %] + [% lateorder.basketno %] + [% END %]

[% lateorder.branch %]

-- 1.7.9.5