protected function onActionBeforeExecute() { if ($this->getAction() == "updateIndex") { if (CRequest::getString("key") == CSettingsManager::getSettingValue("solr_key")) { return true; } } parent::onActionBeforeExecute(); }