[Rt-commit] rt branch, 4.0/link-people-box-for-watch-right, created. rt-4.0.12-7-gdb3e18a
Thomas Sibley
trs at bestpractical.com
Mon May 6 17:22:48 EDT 2013
The branch, 4.0/link-people-box-for-watch-right has been created
at db3e18a3c44abc2dabd435c349b4a279b4a8f294 (commit)
- Log -----------------------------------------------------------------
commit db3e18a3c44abc2dabd435c349b4a279b4a8f294
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon May 6 14:21:50 2013 -0700
Link the title of the ticket "People" box when Watch/WatchAsAdminCc are granted
diff --git a/share/html/Ticket/Elements/ShowSummary b/share/html/Ticket/Elements/ShowSummary
index 48db922..7241268 100644
--- a/share/html/Ticket/Elements/ShowSummary
+++ b/share/html/Ticket/Elements/ShowSummary
@@ -60,7 +60,7 @@
&><& /Ticket/Elements/ShowCustomFields, Ticket => $Ticket &></&>
<&| /Widgets/TitleBox, title => loc('People'),
- (($can_modify || $can_modify_owner) ? (title_href => RT->Config->Get('WebPath')."/Ticket/ModifyPeople.html?id=".$Ticket->Id) : ()),
+ (($can_modify || $can_modify_owner || $can_modify_people) ? (title_href => RT->Config->Get('WebPath')."/Ticket/ModifyPeople.html?id=".$Ticket->Id) : ()),
class => 'ticket-info-people',
&><& /Ticket/Elements/ShowPeople, Ticket => $Ticket &></&>
<& /Ticket/Elements/ShowAttachments, Ticket => $Ticket, Attachments => $Attachments &>
@@ -109,4 +109,6 @@ my $can_modify_cf = $Ticket->CurrentUserHasRight('ModifyCustomField');
my $can_modify_owner = $Ticket->CurrentUserHasRight('OwnTicket')
|| $Ticket->CurrentUserHasRight('TakeTicket')
|| $Ticket->CurrentUserHasRight('StealTicket');
+my $can_modify_people = $Ticket->CurrentUserHasRight('Watch')
+ || $Ticket->CurrentUserHasRight('WatchAsAdminCc');
</%INIT>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list