src/ViKon/Auth/RouterAuth.php
public function hasAccess($name)
    {
        $permissions = $this->getPermissions($name);
        $roles       = $this->getRoles($name);

        if ($permissions === null && $roles === null) {
            return null;
        }

        return $this->keeper->hasPermissions($permissions) === true && $this->keeper->hasRoles($roles) === true;
    }
public function hasAccess($name)
    {
        $permissions = $this->getPermissions($name);
        $roles       = $this->getRoles($name);

        if ($permissions === null && $roles === null) {
            return null;
        }

        return $this->keeper->hasPermissions($permissions) === true && $this->keeper->hasRoles($roles) === true;
    }
public function hasAccess ( $ name ) { $ permissions = $ this -> getPermissions ( $ name ) ; $ roles = $ this -> getRoles ( $ name ) ; if ( $ permissions === null && $ roles === null ) { return null ; } return $ this -> keeper -> hasPermissions ( $ permissions ) === true && $ this -> keeper -> hasRoles ( $ roles ) === true ; }
Check if current user has access to named route

@param string $name named route name

@return bool|null NULL if route not found, otherwise TRUE or FALSE depend if user has access to route or not
Check if current user has access to named route