? ? Pending

User tests: Successful: Unsuccessful:

avatar heelc29
heelc29
24 Dec 2022

Summary of Changes

The check of permissions for the menu items is different between mod_submenu (dashboards) and mod_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:
image

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

Actual result BEFORE applying this Pull Request

Categories is only displayed in the main menu (also applies to com_contact, ...)
image

When you click on workflows
image

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.workflow of com_content)
image

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar joomla-cms-bot joomla-cms-bot - change - 24 Dec 2022
Category Modules Administration
avatar heelc29 heelc29 - open - 24 Dec 2022
avatar heelc29 heelc29 - change - 24 Dec 2022
Status New Pending
avatar ceciogit ceciogit - test_item - 24 Dec 2022 - Tested successfully
avatar ceciogit
ceciogit - comment - 24 Dec 2022

I have tested this item successfully on 22bb4fc

can replicate the issue, the pull request solved it.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39486.

avatar carlitorweb
carlitorweb - comment - 25 Dec 2022

I confirm the issue when you click on workflows and the PR fix it. But I have listed here Categories without apply the PR.

Captura

User permissions over com_content
Captura

avatar heelc29
heelc29 - comment - 26 Dec 2022

I confirm the issue when you click on workflows and the PR fix it. But I have listed here Categories without apply the PR.

@carlitorweb Ah, for my test I denied access core.manage globally and enabled it only for com_content. So without the patch it will try to check the permissions for com_categories that don't exist, thus falling back to the global permissions where core.manage is allowed.

Ok if you allow it globally you could deny it (core.manage) for com_content and then open the content dashboard. Here should the link to categories still visible but when you click on it you will get an 403?

image
image

avatar carlitorweb
carlitorweb - comment - 30 Dec 2022

Ok if you allow it globally you could deny it (core.manage) for com_content and then open the content dashboard. Here should the link to categories still visible but when you click on it you will get an 403?

No, the result is same, not show any relate resources to the content component
Captura

This are the permissions:
Captura

avatar heelc29
heelc29 - comment - 2 Jan 2023

No, the result is same, not show any relate resources to the content component

@carlitorweb Yes, in the main menu (mod_menu) is correct, but at dashboard (mod_submenu) is not correct.
image

There are tho test cases:

  1. I described in the test instruction (global: denied; content: allowed)
    • Link to Categories is missing at dashboard, although you have access and it is displayed in the (left) main menu
  2. You tested now (global: allowed; content: denied)
    • Link to Categories is displayed at dashboard, although you don't have access and it doesn't displayed in the (left) main menu --> 403 Error

image

avatar carlitorweb
carlitorweb - comment - 2 Jan 2023

Yes, in the main menu (mod_menu) is correct, but at dashboard (mod_submenu) is not correct.

This is correct, my fault. Now all is okay.

avatar carlitorweb carlitorweb - test_item - 2 Jan 2023 - Tested successfully
avatar carlitorweb
carlitorweb - comment - 2 Jan 2023

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.

avatar Quy Quy - change - 2 Jan 2023
Status Pending Ready to Commit
Labels Added: ?
avatar Quy
Quy - comment - 2 Jan 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39486.

avatar roland-d roland-d - change - 5 Jan 2023
Labels Added: ?
avatar roland-d
roland-d - comment - 5 Jan 2023

Thank you.

avatar roland-d roland-d - change - 5 Jan 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-01-05 12:26:42
Closed_By roland-d
avatar roland-d roland-d - close - 5 Jan 2023
avatar roland-d roland-d - merge - 5 Jan 2023

Add a Comment

Login with GitHub to post a comment