[Rt-commit] rt branch, 4.4/ticket-show-summary-callback, created. rt-4.4.4-63-g55a057845
Jim Brandt
jbrandt at bestpractical.com
Fri Sep 6 16:27:36 EDT 2019
The branch, 4.4/ticket-show-summary-callback has been created
at 55a0578457fad781072fba6209aac3b263599990 (commit)
- Log -----------------------------------------------------------------
commit 55a0578457fad781072fba6209aac3b263599990
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Fri Sep 6 16:04:18 2019 -0400
Add a callback to modify rights on ticket display sections
The collected rights at the bottom of Init are used to
determine if the portlet titles should be clickable links
for the user. Provide a way to modify the rights check and
make some titles not be links.
diff --git a/share/html/Ticket/Elements/ShowSummary b/share/html/Ticket/Elements/ShowSummary
index 5aaacb1f8..e6eadc1fd 100644
--- a/share/html/Ticket/Elements/ShowSummary
+++ b/share/html/Ticket/Elements/ShowSummary
@@ -112,4 +112,9 @@ my $can_modify_cf = $Ticket->CurrentUserHasRight('ModifyCustomField');
my $can_modify_owner = $Ticket->CurrentUserCanSetOwner();
my $can_modify_people = $Ticket->CurrentUserHasRight('Watch')
|| $Ticket->CurrentUserHasRight('WatchAsAdminCc');
+
+$m->callback( CallbackName => 'ModifyRights', %ARGS, TicketObj => $Ticket, ARGSRef => \%ARGS,
+ CanModify => \$can_modify, CanModifyCF => \$can_modify_cf,
+ CanModifyOwner => \$can_modify_owner, CanModifyPeople => \$can_modify_people );
+
</%INIT>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list