Acl\Shell\AclShell::check PHP Method

check() public method

Check permission for a given ARO to a given ACO.
public check ( ) : void
return void
    public function check()
    {
        extract($this->_getParams());
        if ($this->Acl->check($aro, $aco, $action)) {
            $this->out(__d('cake_acl', '{0} is <success>allowed</success>.', [$aroName]));
        } else {
            $this->out(__d('cake_acl', '{0} is <error>not allowed</error>.', [$aroName]));
        }
    }