[4.2] Fix check permission in mod_submenu#39486
Conversation
|
I have tested this item ✅ successfully on 22bb4fc This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39486. |
@carlitorweb Ah, for my test I denied access Ok if you allow it globally you could deny it ( |
@carlitorweb Yes, in the main menu (mod_menu) is correct, but at dashboard (mod_submenu) is not correct. There are tho test cases:
|
This is correct, my fault. Now all is okay. |
|
I have tested this item ✅ successfully on 22bb4fc This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39486. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39486. |
|
Thank you. |




Summary of Changes
The check of permissions for the menu items is different between
mod_submenu(dashboards) andmod_menu(main menu).administrator/modules/mod_submenu/src/Menu/Menu.php#L136 ff.
administrator/modules/mod_menu/src/Menu/CssMenu.php#L333 ff.
Testing Instructions
Enable workflows in article options:

Check the content dashboard with a user with these permissions on com_content:

Actual result BEFORE applying this Pull Request
Categories is only displayed in the main menu (also applies to com_contact, ...)

When you click on workflows

Expected result AFTER applying this Pull Request
Categories is displayed in the module of the dashboard

Module containing workflows is not displayed (because no access to
core.manage.workflowof com_content)Link to documentations
Please select: