diff --git a/modules/mod_tags_popular/helper.php b/modules/mod_tags_popular/helper.php index e613776aa64d1..9580ea906d612 100644 --- a/modules/mod_tags_popular/helper.php +++ b/modules/mod_tags_popular/helper.php @@ -84,8 +84,9 @@ public static function getList(&$params) $query->where($db->quoteName('m.type_alias') . ' = ' . $db->quoteName('c.core_type_alias')); - // Only return tags connected to published articles + // Only return tags connected to published and authorised items $query->where($db->quoteName('c.core_state') . ' = 1') + ->where($db->quoteName('c.core_access') . ' IN (' . $groups . ')') ->where('(' . $db->quoteName('c.core_publish_up') . ' = ' . $nullDate . ' OR ' . $db->quoteName('c.core_publish_up') . ' <= ' . $db->quote($nowDate) . ')') ->where('(' . $db->quoteName('c.core_publish_down') . ' = ' . $nullDate