From 2f7cd025a3208f3e33f9c35cce009f51e60bbaff Mon Sep 17 00:00:00 2001 From: Olivier Buisard Date: Fri, 20 Sep 2024 15:08:48 -0400 Subject: [PATCH] [4.4] [Guided Tours] The categories tour is not visible to Managers (#44116) * When the tour is a category, the authorization to run should come from the extension associated with those categories. * Improved equality. Co-authored-by: Brian Teeman --- .../modules/mod_guidedtours/src/Helper/GuidedToursHelper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/administrator/modules/mod_guidedtours/src/Helper/GuidedToursHelper.php b/administrator/modules/mod_guidedtours/src/Helper/GuidedToursHelper.php index bdc899a3a7290..e0ed9d33af7f8 100644 --- a/administrator/modules/mod_guidedtours/src/Helper/GuidedToursHelper.php +++ b/administrator/modules/mod_guidedtours/src/Helper/GuidedToursHelper.php @@ -59,6 +59,9 @@ public function getTours(Registry $params, AdministratorApplication $app) $uri = new Uri($item->url); if ($extension = $uri->getVar('option')) { + if ($extension === 'com_categories') { + $extension = $uri->getVar('extension'); + } if (!$user->authorise('core.manage', $extension)) { unset($items[$key]); }