Bugzilla – Attachment 23765 Details for
Bug 11434
in late order page only user with order_manage permission should be allowed to click on basket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] Bug 11434 - in late order page remove the link around basket for user without required rights
0001-ne.patch (text/plain), 1.93 KB, created by
Mathieu Saby
on 2013-12-22 22:04:12 UTC
(
hide
)
Description:
[PATCH] Bug 11434 - in late order page remove the link around basket for user without required rights
Filename:
MIME Type:
Creator:
Mathieu Saby
Created:
2013-12-22 22:04:12 UTC
Size:
1.93 KB
patch
obsolete
>From 1ce46c3f4b5d84e5cb81c45881b6ffb8e8c7e592 Mon Sep 17 00:00:00 2001 >From: Mathieu Saby <mathieu.saby@univ-rennes2.fr> >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() { > <p title="budget">[% lateorder.budget %]</p> > </td> > <td> >- <p><a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket"> >- [% lateorder.basketno %] >- </a> >+ <p> >+ [% IF ( CAN_user_acquisition_order_manage ) %] >+ <a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket"> [% lateorder.basketno %]</a> >+ [% ELSE %] >+ [% lateorder.basketno %] >+ [% END %] > </p> > <p title="branch">[% lateorder.branch %]</p> > </td> >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11434
: 23765