diff --git a/administrator/templates/hathor/html/com_menus/items/default.php b/administrator/templates/hathor/html/com_menus/items/default.php index 1781aa57d0f7d..cf461aa1bc026 100644 --- a/administrator/templates/hathor/html/com_menus/items/default.php +++ b/administrator/templates/hathor/html/com_menus/items/default.php @@ -22,6 +22,7 @@ $ordering = ($listOrder == 'a.lft'); $canOrder = $user->authorise('core.edit.state', 'com_menus'); $saveOrder = ($listOrder == 'a.lft' && $listDirn == 'asc'); +$menutypeid = (int) $this->state->get('menutypeid'); $assoc = JLanguageAssociations::isEnabled(); ?> @@ -136,10 +137,10 @@ items as $i => $item) : $orderkey = array_search($item->id, $this->ordering[$item->parent_id]); - $canCreate = $user->authorise('core.create', 'com_menus'); - $canEdit = $user->authorise('core.edit', 'com_menus'); + $canCreate = $user->authorise('core.create', 'com_menus.menu.' . $menutypeid); + $canEdit = $user->authorise('core.edit', 'com_menus.menu.' . $menutypeid); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id')|| $item->checked_out == 0; - $canChange = $user->authorise('core.edit.state', 'com_menus') && $canCheckin; + $canChange = $user->authorise('core.edit.state', 'com_menus.menu.' . $menutypeid) && $canCheckin; ?>
( id).' title='.$this->escape($item->description).'">'.