[Rt-commit] rt branch, 4.0/obfuscate-currentuser, created. rt-4.0.6-250-gf60016b

Alex Vandiver alexmv at bestpractical.com
Wed Nov 27 15:32:44 EST 2013


The branch, 4.0/obfuscate-currentuser has been created
        at  f60016be05501cd10d319fd575c78e09c76f4812 (commit)

- Log -----------------------------------------------------------------
commit f60016be05501cd10d319fd575c78e09c76f4812
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Sat Jul 28 23:41:14 2012 -0400

    Make Obfuscate configuration callback be passed a user as documented
    
    8561063 provided a way for configuration options to obfuscate
    themselves.  Unfortunately, while the documentation claimed that the
    function would be called with a user, the implementation did not do so.
    Correct this oversight.

diff --git a/share/html/Admin/Tools/Configuration.html b/share/html/Admin/Tools/Configuration.html
index ed7d465..fc438d4 100644
--- a/share/html/Admin/Tools/Configuration.html
+++ b/share/html/Admin/Tools/Configuration.html
@@ -65,7 +65,7 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
 <%PERL>
 my $index_conf;
 foreach my $key ( RT->Config->Options( Overridable => undef, Sorted => 0 ) ) {
-    my $val = RT->Config->GetObfuscated( $key );
+    my $val = RT->Config->GetObfuscated( $key, $session{'CurrentUser'} );
     next unless defined $val;
 
     my $meta = RT->Config->Meta( $key );

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


More information about the rt-commit mailing list