Changeset View
Changeset View
Standalone View
Standalone View
core/units/modules/modules_event_handler.php
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | |||||
{ | { | ||||
parent::OnAfterListQuery($event); | parent::OnAfterListQuery($event); | ||||
$modules_helper = $this->Application->recallObject('kModulesHelper'); | $modules_helper = $this->Application->recallObject('kModulesHelper'); | ||||
/* @var $modules_helper kModulesHelper */ | /* @var $modules_helper kModulesHelper */ | ||||
$new_modules = $modules_helper->getModules(kModulesHelper::NOT_INSTALLED); | $new_modules = $modules_helper->getModules(kModulesHelper::NOT_INSTALLED); | ||||
if ( !$new_modules || $this->Application->RecallVar('user_id') != USER_ROOT ) { | if ( !$new_modules || !$this->Application->permissionCheckingDisabled() ) { | ||||
return; | return; | ||||
} | } | ||||
require_once FULL_PATH . '/core/install/install_toolkit.php'; | require_once FULL_PATH . '/core/install/install_toolkit.php'; | ||||
$toolkit = new kInstallToolkit(); | $toolkit = new kInstallToolkit(); | ||||
$object = $event->getObject(); | $object = $event->getObject(); | ||||
Show All 15 Lines |