[rt-users] [PATCH] RT::Users->WhoBelongToGroups applies LimitToPrivileged filter

Thomas Sibley trs at bestpractical.com
Wed Mar 13 13:50:35 EDT 2013


On 03/13/2013 03:06 AM, Craig Ringer wrote:
> I think I could hot-insert the method into RT::Users with something like:
> 
> {
>   package RT::Users;
>   sub WhoBelongToGroupsIncludingPrivileged {
>     # ....
>   }
> }
> 
> in my module. It doesn't have to be visible to other modules, so it'd
> essentially be a method of RT::Users that's private to my extension.

That injects the method into RT::Users.  It will override the existing
method and all code will use it once your extension is loaded.  It is
not private, as you describe.




More information about the rt-users mailing list