[rt-users] Searches.... and CurrentUser

Emmanuel Lacour elacour at easter-eggs.com
Tue Jan 22 03:45:29 EST 2008


On Tue, Jan 22, 2008 at 09:22:32AM +0100, Ham MI-ID, Torsten Brumm wrote:
> Hi RT List,
> 
> I remember some weeks ago a bigger threat regarding searches with
> CurrentUser inside.
> 
> Today i tried to create a global SavedSearch like this: AdminCc.Name =
> '__CurrentUser__' AND  (  Status = 'new' OR Status = 'open' )
> 
> I copied this from My Tickets: Owner = '__CurrentUser__' AND  ( Status =
> 'new' OR Status = 'open' )
> 
> I also tried AdminCc.Name like '__CurrentUser__' both without success.

I'm pretty sure that __CurrentUser__ = User.id, not User.Name :(

So try either AdminCc.Id = '__CurrentUser__'.

Here I have search with Requestor.Id = '__CurrentUser__' which works.




More information about the rt-users mailing list