original_string: public function checkUserHasAdminAccess($idSites)
      {
          if ($this->hasSuperUserAccess()) {
              return;
          }
  
          $idSites = $this->getIdSites($idSites);
          $idSitesAccessible = $this->getSitesIdWithAdminAccess();
  
          foreach ($idSites as $idsite) {
              if (!in_array($idsite, $idSitesAccessible)) {
                  throw new NoAccessException(Piwik::translate('General_ExceptionPrivilegeAccessWebsite', array("'admin'", $idsite)));
              }
          }
      }
code: public function checkUserHasAdminAccess($idSites)
      {
          if ($this->hasSuperUserAccess()) {
              return;
          }
  
          $idSites = $this->getIdSites($idSites);
          $idSitesAccessible = $this->getSitesIdWithAdminAccess();
  
          foreach ($idSites as $idsite) {
              if (!in_array($idsite, $idSitesAccessible)) {
                  throw new NoAccessException(Piwik::translate('General_ExceptionPrivilegeAccessWebsite', array("'admin'", $idsite)));
              }
          }
      }
code_tokens: public function checkUserHasAdminAccess ( $ idSites ) { if ( $ this -> hasSuperUserAccess ( ) ) { return ; } $ idSites = $ this -> getIdSites ( $ idSites ) ; $ idSitesAccessible = $ this -> getSitesIdWithAdminAccess ( ) ; foreach ( $ idSites as $ idsite ) { if ( ! in_array ( $ idsite , $ idSitesAccessible ) ) { throw new NoAccessException ( Piwik :: translate ( 'General_ExceptionPrivilegeAccessWebsite' , array ( "'admin'" , $ idsite ) ) ) ; } } }
docstring: This method checks that the user has ADMIN access for the given list of websites.
  If the user doesn't have ADMIN access for at least one website of the list, we throw an exception.
  
  @param int|array $idSites List of ID sites to check
  @throws \Piwik\NoAccessException If for any of the websites the user doesn't have an ADMIN access
docstring_tokens: This method checks that the user has ADMIN access for the given list of websites . If the user doesn t have ADMIN access for at least one website of the list we throw an exception .