Skip to content

Commit

Permalink
[4.4] [Guided Tours] The categories tour is not visible to Managers (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
obuisard and brianteeman authored Sep 20, 2024
1 parent c12ddb8 commit 2f7cd02
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 2f7cd02

Please sign in to comment.