[Bps-public-commit] r9542 - RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/Ticket/Elements/Tabs
ruz at bestpractical.com
ruz at bestpractical.com
Fri Nov 2 16:17:07 EDT 2007
Author: ruz
Date: Fri Nov 2 16:17:07 2007
New Revision: 9542
Modified:
RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/Ticket/Elements/Tabs/Default
Log:
* don't show lock/inlock/break links if user has no rights
Modified: RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/Ticket/Elements/Tabs/Default
==============================================================================
--- RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/Ticket/Elements/Tabs/Default (original)
+++ RT-Extension-TicketLocking/html/Callbacks/RT-Extension-TicketLocking/Ticket/Elements/Tabs/Default Fri Nov 2 16:17:07 2007
@@ -5,6 +5,10 @@
<%INIT>
return unless $Ticket;
+if ( my $right = $RT::Ticket::CheckRightOnLock{'Hard'} ) {
+ return unless $Ticket->CurrentUserHasRight( $right );
+}
+
if (my $Lock = $Ticket->Locked()) {
if ($Lock->Content->{'User'} == $session{'CurrentUser'}->id) {
$actions->{'Lock'} = {
More information about the Bps-public-commit
mailing list