original_string: public function deleteAllTrackingFailures()
      {
          if (Piwik::hasUserSuperUserAccess()) {
              $this->trackingFailures->deleteAllTrackingFailures();
          } else {
              Piwik::checkUserHasSomeAdminAccess();
              $idSites = Access::getInstance()->getSitesIdWithAdminAccess();
              Piwik::checkUserHasAdminAccess($idSites);
              $this->trackingFailures->deleteTrackingFailures($idSites);
          }
      }
code: public function deleteAllTrackingFailures()
      {
          if (Piwik::hasUserSuperUserAccess()) {
              $this->trackingFailures->deleteAllTrackingFailures();
          } else {
              Piwik::checkUserHasSomeAdminAccess();
              $idSites = Access::getInstance()->getSitesIdWithAdminAccess();
              Piwik::checkUserHasAdminAccess($idSites);
              $this->trackingFailures->deleteTrackingFailures($idSites);
          }
      }
code_tokens: public function deleteAllTrackingFailures ( ) { if ( Piwik :: hasUserSuperUserAccess ( ) ) { $ this -> trackingFailures -> deleteAllTrackingFailures ( ) ; } else { Piwik :: checkUserHasSomeAdminAccess ( ) ; $ idSites = Access :: getInstance ( ) -> getSitesIdWithAdminAccess ( ) ; Piwik :: checkUserHasAdminAccess ( $ idSites ) ; $ this -> trackingFailures -> deleteTrackingFailures ( $ idSites ) ; } }
docstring: Deletes all tracking failures this user has at least admin access to.
  A super user will also delete tracking failures for sites that don't exist.
docstring_tokens: Deletes all tracking failures this user has at least admin access to . A super user will also delete tracking failures for sites that don t exist .