From ad6fe53f0c7fdf1e27f35603da26f51e8c49250b Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Sun, 22 Dec 2013 22:48:34 +0100 Subject: [PATCH] Bug 11027: (follow-up) Create link to baskets/basketgroups only if user have required permissions With this followup, a user without order_manage permission won't be able to cick on a basket and a user without group_manage permission won't be able to click on a basketgroup Signed-off-by: Mark Tompsett Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton --- .../prog/en/modules/acqui/lateorders.tt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 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 a0369458b2..c5341c29e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -159,10 +159,18 @@ $(document).ready(function() { [% lateorder.subtotal %] - [% lateorder.basketname %] ([% lateorder.basketno %]) + [% IF ( CAN_user_acquisition_order_manage ) %] + [% lateorder.basketname %] ([% lateorder.basketno %]) + [% ELSE %] + [% lateorder.basketname %] ([% lateorder.basketno %]) + [% END %] - [% lateorder.basketgroupname %] ([% lateorder.basketgroupid %]) + [% IF ( CAN_user_acquisition_group_manage ) %] + [% lateorder.basketgroupname %] ([% lateorder.basketgroupid %]) + [% ELSE %] + [% lateorder.basketgroupname %] ([% lateorder.basketgroupid %]) + [% END %] [% lateorder.branch %] -- 2.39.5