Acl\Shell\AclShell::grant PHP Method

grant() public method

Grant permission for a given ARO to a given ACO.
public grant ( ) : void
return void
    public function grant()
    {
        extract($this->_getParams());
        if ($this->Acl->allow($aro, $aco, $action)) {
            $this->out(__d('cake_acl', 'Permission <success>granted</success>.'));
        } else {
            $this->out(__d('cake_acl', 'Permission was <error>not granted</error>.'));
        }
    }