Skip to content

Commit

Permalink
mod_submenu throws a fatal error if you use quicktask-permission in p…
Browse files Browse the repository at this point in the history
…resets (#38757)
  • Loading branch information
Nicholas K. Dionysopoulos committed Sep 14, 2022
1 parent 76ed29a commit 1c238e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions administrator/modules/mod_submenu/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

$user = \Joomla\CMS\Factory::getApplication()->getIdentity();

/** @var \Joomla\CMS\Menu\MenuItem $root */
?>
<?php foreach ($root->getChildren() as $child) : ?>
Expand Down

0 comments on commit 1c238e9

Please sign in to comment.