original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns whether or not the current user has access during maintenance mode
docstring_tokens: Returns whether or not the current user has access during maintenance mode