[rt-users] RT4 User.pm Overlay broken?

Shawn M Plummer plummer at geneseo.edu
Fri Jul 1 10:45:32 EDT 2011


I have been trying to customize RT4 to match our old rt3 instance, one of the items I need to modify is the sub _OverlayAccessible in lib/RT/User.pm

I have tried making a $rthome/local/lib/RT/User_Overlay.pm $rthome/local/lib/RT/User_Local.pm $rthome/lib/RT/User_Overlay.pm and $rthome/lib/RT/User_Local.pm file and none of them have changed which fields are visible to non admin users. (I just want to make WorkPhone and Address1 visible) If I modify $rthome/lib/RT/User.pm directly the fields do show up as visible but that is not how http://requesttracker.wikia.com/wiki/CustomizingWithOverlays leads me to believe it should be done and its messy on upgrades. The local overlay method works in our rt38 production instance just fine.

Anyone have any luck using overlays? Did I miss something about RT4?

The contents of the file are as follows:
------------
use strict;
no warnings qw(redefine);
### Redefine sub _Overlay Accessible to allow all users access to appropriate fields so About this user can display users phone and address.

sub _OverlayAccessible {
    {

        Name                    => { public => 1,  admin => 1 },
          Password              => { read   => 0 },
          EmailAddress          => { public => 1 },
          Organization          => { public => 1,  admin => 1 },
          Address1              => { public => 1 },
          WorkPhone             => { public => 1 },
          RealName              => { public => 1 },
          NickName              => { public => 1,  admin => 1 },
          Lang                  => { public => 1 },
          EmailEncoding         => { public => 1 },
          WebEncoding           => { public => 1 },
          ExternalContactInfoId => { public => 1,  admin => 1 },
          ContactInfoSystem     => { public => 1,  admin => 1 },
          ExternalAuthId        => { public => 1,  admin => 1 },
          AuthSystem            => { public => 1,  admin => 1 },
          Gecos                 => { public => 1,  admin => 1 },
          PGPKey                => { public => 1,  admin => 1 },

    }
}

1;
----------

~~~~~~~~~~~~~
Shawn Plummer
Systems Manager
CIT SUNY Geneseo
"The mind can make substance, and people planets of its own with beings brighter than have been, and give a breath to forms which can outlive all flesh." -Lord Byron




More information about the rt-users mailing list