Hello, i’m actually trying to implement the isAutorized method in my AppController and UserController.
First, I tried to implement it basically like :
function isAuthorized($type){
return true;
}
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.