Re: [rt-users] Getting CurrentUser reference in Users overlay file

2016-06-24 Thread aniket tripathy
My bad, in the above script, the $self was holding the 1st argument, rather than the reference of RT::Users class. The original subroutine returns the ref of RT::Users. As per the documentation of Hook::Lexwrap, the returned value from the original subroutine should be accessible from the post

[rt-users] Getting CurrentUser reference in Users overlay file

2016-06-21 Thread aniket tripathy
Hi, I intend to filter the results returned by SimpleSearch method in Users.pm based on the custom field value set in the current user logged in. I am using Hook::LexWrap in the Users_Local.pm overlay file, to write a post method to filter the results of SimpleSearch. How can I get a ref of