This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » Subcontroller with wrong user id

Subcontroller with wrong user id

Subcontroller with wrong user id

Wednesday 18 June 2014 11:35:08 am - 2 replies


I'm experiencing a weird issue in a subcontroller. When a user with "Member" role is logged in, a subcontroller recognize the user as admin.

This is the twig code I've used:

And this is the controller:

If I get the current user id from this controller, it returns 14. The original controller, instead, returns the correct user id. I really can't figure out why this happens. 

Modified on Wednesday 18 June 2014 11:40:34 am by Simone D'Amico

Friday 20 June 2014 1:28:07 am

Is there another subcontroller or service that runs beforehand and changes the repositories logged in user?

Friday 27 June 2014 3:16:42 pm

Nope. The main controller returns the right user id, and within the template of main controller I launch the above controller.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from