src/Controller/Component/AuthorizationComponent.php
public function authorizeAction()
    {
        $request = $this->getController()->request;
        $action = $request->getParam('action');

        $skipAuthorization = $this->checkAction($action, 'skipAuthorization');
        if ($skipAuthorization) {
            $this->skipAuthorization();

            return;
        }

        $authorizeModel = $this->checkAction($action, 'authorizeModel');
        if ($authorizeModel) {
            $this->authorize($this->getController()->loadModel());
        }
    }
public function authorizeAction()
    {
        $request = $this->getController()->request;
        $action = $request->getParam('action');

        $skipAuthorization = $this->checkAction($action, 'skipAuthorization');
        if ($skipAuthorization) {
            $this->skipAuthorization();

            return;
        }

        $authorizeModel = $this->checkAction($action, 'authorizeModel');
        if ($authorizeModel) {
            $this->authorize($this->getController()->loadModel());
        }
    }
public function authorizeAction ( ) { $ request = $ this -> getController ( ) -> request ; $ action = $ request -> getParam ( 'action' ) ; $ skipAuthorization = $ this -> checkAction ( $ action , 'skipAuthorization' ) ; if ( $ skipAuthorization ) { $ this -> skipAuthorization ( ) ; return ; } $ authorizeModel = $ this -> checkAction ( $ action , 'authorizeModel' ) ; if ( $ authorizeModel ) { $ this -> authorize ( $ this -> getController ( ) -> loadModel ( ) ) ; } }
Action authorization handler.

Checks identity and model authorization.

@return void
Action authorization handler .