public function deleteAllTrackingFailures()
    {
        if (Piwik::hasUserSuperUserAccess()) {
            $this->trackingFailures->deleteAllTrackingFailures();
        } else {
            Piwik::checkUserHasSomeAdminAccess();
            $idSites = Access::getInstance()->getSitesIdWithAdminAccess();
            Piwik::checkUserHasAdminAccess($idSites);
            $this->trackingFailures->deleteTrackingFailures($idSites);
        }
    }
public function deleteAllTrackingFailures()
    {
        if (Piwik::hasUserSuperUserAccess()) {
            $this->trackingFailures->deleteAllTrackingFailures();
        } else {
            Piwik::checkUserHasSomeAdminAccess();
            $idSites = Access::getInstance()->getSitesIdWithAdminAccess();
            Piwik::checkUserHasAdminAccess($idSites);
            $this->trackingFailures->deleteTrackingFailures($idSites);
        }
    }
public function deleteAllTrackingFailures ( ) { if ( Piwik :: hasUserSuperUserAccess ( ) ) { $ this -> trackingFailures -> deleteAllTrackingFailures ( ) ; } else { Piwik :: checkUserHasSomeAdminAccess ( ) ; $ idSites = Access :: getInstance ( ) -> getSitesIdWithAdminAccess ( ) ; Piwik :: checkUserHasAdminAccess ( $ idSites ) ; $ this -> trackingFailures -> deleteTrackingFailures ( $ idSites ) ; } }
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.
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 .