Changeset View
Changeset View
Standalone View
Standalone View
core/units/modules/modules_tag_processor.php
Show All 17 Lines | |||||
function ModuleInstalled($params) | function ModuleInstalled($params) | ||||
{ | { | ||||
return $this->Application->isModuleEnabled($params['name']); | return $this->Application->isModuleEnabled($params['name']); | ||||
} | } | ||||
function _hasPrivileges() | function _hasPrivileges() | ||||
{ | { | ||||
return $this->Application->RecallVar('user_id') == USER_ROOT; | return $this->Application->permissionCheckingDisabled(); | ||||
} | } | ||||
function AlreadyInstalled($params) | function AlreadyInstalled($params) | ||||
{ | { | ||||
if (!$this->_hasPrivileges()) { | if (!$this->_hasPrivileges()) { | ||||
// don't show licenses status for non-privileged users | // don't show licenses status for non-privileged users | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |