protected function doesCurrentUserHaveAccess()
    {
        // Admins have access by default
        if (Craft::$app->user->getIsAdmin())
        {
            return true;
        }

        // User has the right permission
        if (Craft::$app->user->checkPermission(Patrol::MAINTENANCE_MODE_BYPASS_PERMISSION))
        {
            return true;
        }

        return false;
    }
protected function doesCurrentUserHaveAccess()
    {
        // Admins have access by default
        if (Craft::$app->user->getIsAdmin())
        {
            return true;
        }

        // User has the right permission
        if (Craft::$app->user->checkPermission(Patrol::MAINTENANCE_MODE_BYPASS_PERMISSION))
        {
            return true;
        }

        return false;
    }
protected function doesCurrentUserHaveAccess ( ) { // Admins have access by default if ( Craft :: $ app -> user -> getIsAdmin ( ) ) { return true ; } // User has the right permission if ( Craft :: $ app -> user -> checkPermission ( Patrol :: MAINTENANCE_MODE_BYPASS_PERMISSION ) ) { return true ; } return false ; }
Returns whether or not the current user has access during maintenance mode
Returns whether or not the current user has access during maintenance mode