Hello, i’m actually trying to implement the isAutorized method in my AppController and UserController.
First, I tried to implement it basically like :
And I get an error : return type declarations must be compatible with controller->isauthorized : bool. I tried in my AppController, my UserController, same error. I tried too to add ($user = null) in parameter but same error.
If you have any advice or help,
Thank you in advance,