Hello,
we have a problem on CA 2.0.
In one of our controllers, in the constructor we recall the logged in user:
public function __construct(&$po_request, &$po_response, $pa_view_paths = NULL) {
parent::__construct($po_request, $po_response, $pa_view_paths);
var_dump($po_request->user->getUserID()); // false if call via ajax
var_dump($this->request->user->getUserID()); // false if call via ajax
If the path is call normally, it works, if a method is call via ajax, the request and user are null.
The same code, on CA 1.7.16 works fine.
How can we get the user from a controller called via ajax in CA 2.0?
Thanks in advance,
CSI Piemonte