X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FShowSummary;h=25782e693ab4132520fc282bea962d5b2902010e;hp=a1d1610dc53845f5e072ee827ae36210fb46e1d3;hb=919e930aa9279b3c5cd12b593889cd6de79d67bf;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7 diff --git a/rt/share/html/Ticket/Elements/ShowSummary b/rt/share/html/Ticket/Elements/ShowSummary index a1d1610dc..25782e693 100755 --- a/rt/share/html/Ticket/Elements/ShowSummary +++ b/rt/share/html/Ticket/Elements/ShowSummary @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -66,7 +66,7 @@ &><& /Ticket/Elements/ShowCustomers, 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 &> @@ -82,8 +82,9 @@ &>
- <& /Ticket/Elements/Reminders, Ticket => $Ticket, ShowCompleted => 0 &> +% if ( $m->comp("/Ticket/Elements/Reminders", Ticket => $Ticket, ShowCompleted => 0) ) {
+% }
@@ -114,4 +115,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');