original_string: public function checkUserHasSomeViewAccess()
      {
          if ($this->hasSuperUserAccess()) {
              return;
          }
  
          $idSitesAccessible = $this->getSitesIdWithAtLeastViewAccess();
  
          if (count($idSitesAccessible) == 0) {
              throw new NoAccessException(Piwik::translate('General_ExceptionPrivilegeAtLeastOneWebsite', array('view')));
          }
      }
code: public function checkUserHasSomeViewAccess()
      {
          if ($this->hasSuperUserAccess()) {
              return;
          }
  
          $idSitesAccessible = $this->getSitesIdWithAtLeastViewAccess();
  
          if (count($idSitesAccessible) == 0) {
              throw new NoAccessException(Piwik::translate('General_ExceptionPrivilegeAtLeastOneWebsite', array('view')));
          }
      }
code_tokens: public function checkUserHasSomeViewAccess ( ) { if ( $ this -> hasSuperUserAccess ( ) ) { return ; } $ idSitesAccessible = $ this -> getSitesIdWithAtLeastViewAccess ( ) ; if ( count ( $ idSitesAccessible ) == 0 ) { throw new NoAccessException ( Piwik :: translate ( 'General_ExceptionPrivilegeAtLeastOneWebsite' , array ( 'view' ) ) ) ; } }
docstring: If the user doesn't have any view permission, throw exception
  
  @throws \Piwik\NoAccessException
docstring_tokens: If the user doesn t have any view permission throw exception