diff --git a/administrator/modules/mod_latestactions/mod_latestactions.php b/administrator/modules/mod_latestactions/mod_latestactions.php index b198b637e7820..4a125d42cd665 100644 --- a/administrator/modules/mod_latestactions/mod_latestactions.php +++ b/administrator/modules/mod_latestactions/mod_latestactions.php @@ -9,6 +9,12 @@ defined('_JEXEC') or die; +// Only super user can view this data +if (!JFactory::getUser()->authorise('core.admin')) +{ + return; +} + // Include dependencies. JLoader::register('ModLatestActionsHelper', __DIR__ . '/helper.php'); diff --git a/administrator/modules/mod_privacy_dashboard/mod_privacy_dashboard.php b/administrator/modules/mod_privacy_dashboard/mod_privacy_dashboard.php index 58b1d8f1057dd..4160610365679 100644 --- a/administrator/modules/mod_privacy_dashboard/mod_privacy_dashboard.php +++ b/administrator/modules/mod_privacy_dashboard/mod_privacy_dashboard.php @@ -9,6 +9,12 @@ defined('_JEXEC') or die; +// Only super user can view this data +if (!JFactory::getUser()->authorise('core.admin')) +{ + return; +} + // Load the privacy component language file. $lang = JFactory::getLanguage(); $lang->load('com_privacy', JPATH_ADMINISTRATOR, null, false, true) diff --git a/plugins/quickicon/privacycheck/privacycheck.php b/plugins/quickicon/privacycheck/privacycheck.php index f78fabd4286de..cb2cec3c7411b 100644 --- a/plugins/quickicon/privacycheck/privacycheck.php +++ b/plugins/quickicon/privacycheck/privacycheck.php @@ -40,7 +40,7 @@ class PlgQuickiconPrivacyCheck extends JPlugin */ public function onGetIcons($context) { - if ($context !== $this->params->get('context', 'mod_quickicon') || !Factory::getUser()->authorise('core.admin', 'com_privacy')) + if ($context !== $this->params->get('context', 'mod_quickicon') || !Factory::getUser()->authorise('core.admin')) { return; }