[Rt-commit] rt branch, 4.4/fix-hide-time-worked, created. rt-4.4.0rc2-18-g18b472d

Dustin Graves dustin at bestpractical.com
Thu Dec 10 19:32:38 EST 2015


The branch, 4.4/fix-hide-time-worked has been created
        at  18b472d395c9a5a94012dac335c044cce251c02f (commit)

- Log -----------------------------------------------------------------
commit 18b472d395c9a5a94012dac335c044cce251c02f
Author: Dustin Graves <dustin at bestpractical.com>
Date:   Fri Dec 11 00:21:09 2015 +0000

    properly hide TimeWorked transactions when $HideTimeFieldsFromUnprivilegedUsers is on
    
    Fixes: I#31545

diff --git a/share/html/Elements/ShowHistoryPage b/share/html/Elements/ShowHistoryPage
index 8420289..2eae6b0 100644
--- a/share/html/Elements/ShowHistoryPage
+++ b/share/html/Elements/ShowHistoryPage
@@ -119,7 +119,7 @@ while ( my $Transaction = $Transactions->Next ) {
     # HideTimeWorkedForUnprivilegedUsers is set.
     $skip = 1 if $Object->isa("RT::Ticket") and
                  not $Object->CurrentUserCanSeeTime and
-                 ($Transaction->Field || '') =~ /^(?:TimeEstimated|Worked|TimeLeft)$/;
+                 ($Transaction->Field || '') =~ /^Time(?:Estimated|Worked|Left)$/;
 
     $m->callback(
         %ARGS,

-----------------------------------------------------------------------


More information about the rt-commit mailing list