Query with filter on logged-in user

Topics: Administration
Sep 6, 2012 at 9:29 PM


I'm trying to add a filter with the currently logged-in user but cannot see where to get this value.

I want to create a Projection with content that change with logged-in user.

Do you have some hints about that ?


Sep 12, 2012 at 5:48 PM

Did you try WorkContext.CurrentUser?

Sep 13, 2012 at 2:07 PM

Hi Bertrand, thanks for your answer.

I try to add a filter on logged-in user in a query in the backoffice.

Is there a way to do that ?

Sep 13, 2012 at 6:40 PM

Look at the code for existing filters.

Sep 13, 2012 at 7:04 PM

So you'd like a Projection for the backend? I don't think this is possible out of the box without some coding. But you could create a Projection then display it from a custom controller for example.