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

Dustin Graves dustin at bestpractical.com
Thu Dec 10 19:31:25 EST 2015


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

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

    properly hide TimeWorked transactions when $HideTimeFieldsFromUnprivilegedUsers is on

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