Index: branches/5.1.x/core/units/modules/modules_tag_processor.php =================================================================== diff -u -N -r12127 -r12657 --- branches/5.1.x/core/units/modules/modules_tag_processor.php (.../modules_tag_processor.php) (revision 12127) +++ branches/5.1.x/core/units/modules/modules_tag_processor.php (.../modules_tag_processor.php) (revision 12657) @@ -1,6 +1,6 @@ Application->isModuleEnabled($params['name']); } + function _hasPrivileges() + { + return $this->Application->RecallVar('user_id') == -1; + } + function AlreadyInstalled($params) { + if (!$this->_hasPrivileges()) { + // don't show licenses status for non-privileged users + return true; + } + $object =& $this->getObject($params); /* @var $object kDBList */ @@ -32,6 +44,11 @@ function ModuleLicensed($params) { + if (!$this->_hasPrivileges()) { + // don't show licenses status for non-privileged users + return true; + } + $object =& $this->getObject($params); /* @var $object kDBList */ @@ -96,4 +113,5 @@ return $this->Application->HREF('dummy', '_FRONT_END_', $url_params, $module_path . '/install.php'); } - } + + } \ No newline at end of file