kernel/private/rest/classes/auth/auth_configuration.php
private function shallAuthenticate()
    {
        $shallAuthenticate = true;
        if ( eZINI::instance( 'rest.ini' )->variable( 'Authentication', 'RequireAuthentication' ) !== 'enabled' )
        {
            $shallAuthenticate = false;
        }
        else
        {
            $routeFilter = ezpRestRouteFilterInterface::getRouteFilter();
            $shallAuthenticate = $routeFilter->shallDoActionWithRoute( $this->info );
        }

        return $shallAuthenticate;
    }
private function shallAuthenticate()
    {
        $shallAuthenticate = true;
        if ( eZINI::instance( 'rest.ini' )->variable( 'Authentication', 'RequireAuthentication' ) !== 'enabled' )
        {
            $shallAuthenticate = false;
        }
        else
        {
            $routeFilter = ezpRestRouteFilterInterface::getRouteFilter();
            $shallAuthenticate = $routeFilter->shallDoActionWithRoute( $this->info );
        }

        return $shallAuthenticate;
    }
private function shallAuthenticate ( ) { $ shallAuthenticate = true ; if ( eZINI :: instance ( 'rest.ini' ) -> variable ( 'Authentication' , 'RequireAuthentication' ) !== 'enabled' ) { $ shallAuthenticate = false ; } else { $ routeFilter = ezpRestRouteFilterInterface :: getRouteFilter ( ) ; $ shallAuthenticate = $ routeFilter -> shallDoActionWithRoute ( $ this -> info ) ; } return $ shallAuthenticate ; }
Checks if authentication should be requested or not
@return bool
Checks if authentication should be requested or not