[rt-users] Allow only a specific user to see a Callback

Tom Lahti toml at bitstatement.net
Mon Mar 23 19:24:28 EDT 2009


I'm no RT API expert, but I think from a best practices standpoint you
really ought to create a new group for the purpose, make 'John' a member of
that group, and then have the scrip allow the callback based on membership
in that group.

holland holland wrote:
> Dear all,
> 
> I would like only a specific user, e.g 'John' to see a callback.
> 
> Currently I only see methods based on user rights, like:
> 
> <%INIT>
> if ($session{'CurrentUser'}->UserObj->HasRight(
>    Right => 'AdminUsers',
>    Object => $RT::System,
> )) {
>    $toptabs->{'My Callback'} = { title =>loc("My Callback"),
>                          path  => "MyCallbacks/1/index.html" };
> }
> </%init>
> <%args>
> $toptabs =>undef
> </%args>
> 
> 
> I want only 'John' to see this callback, not everybody that has
> 'AdminUsers' right.
> 
> 
> Your help is much appreciated!
> 
> Cheers,
> merou
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com


-- 
-- ============================
   Tom Lahti
   BIT Statement LLC

   (425)251-0833 x 117
   http://www.bitstatement.net/
-- ============================



More information about the rt-users mailing list