RTC bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar chmst
chmst
5 Dec 2023

Pull Request for Issue #41624 .

PR #37268 set wrong permission for the "Add module to dahboard" Button on cpanel.
This was caused because a user had a special use case - descibed in #37267

Summary of Changes

This PR sets the permission back to core.manage on com_modules.

Therefore the issue #37267 is unresolved again.
This special use case needs an other solution. Maybe an override of cpanel.

Testing Instructions

You need a user in usergroup manager. Login as manager - you see the button "Add Module to the dashboard".
Activate.
An Error message is displayed.

Apply the patch - no button for usergroup "manager".

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar chmst chmst - open - 5 Dec 2023
avatar chmst chmst - change - 5 Dec 2023
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Dec 2023
Category Administration com_cpanel
avatar chmst chmst - change - 5 Dec 2023
The description was changed
avatar chmst chmst - edited - 5 Dec 2023
avatar brianteeman
brianteeman - comment - 5 Dec 2023

Could you explain what the problem is as it is not clear from your post

avatar chmst
chmst - comment - 5 Dec 2023

Users in group "manager"" are not allowed to work on com_modules. log in as manager and the Menu (content) is:
grafik

If the user now activates the button and has not the permission, it gives an error.
grafik

grafik

avatar chmst chmst - change - 9 Apr 2024
Labels Added: PR-4.4-dev
avatar chmst
chmst - comment - 9 Apr 2024

Therefore the issue #37267 is unresolved again.

resolved now also for this case.

avatar carlitorweb carlitorweb - test_item - 21 Apr 2024 - Tested successfully
avatar carlitorweb
carlitorweb - comment - 21 Apr 2024

I have tested this item ✅ successfully on 2eef018


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

avatar carlitorweb
carlitorweb - comment - 21 Apr 2024

In the case of #37267 will still work fine and no need any change after apply this PR

avatar carlitorweb
carlitorweb - comment - 21 Apr 2024

@chmst delete from summary at least this part: "This PR sets the permission back to core.manage on com_modules."

avatar Sieger66 Sieger66 - test_item - 1 May 2024 - Tested unsuccessfully
avatar Sieger66
Sieger66 - comment - 1 May 2024

I have tested this item ? unsuccessfully on 2eef018

With this PR at this point all users in the usergroup "Administrator"
see not the "Add Module to the dashboard" button.

No button for usergroup "Administrator" only for "Super Users".

Alternative i have test it with:
<?php if (($user->authorise('core.admin', 'com_modules')) and ($user->authorise('core.create', 'com_modules'))) : ?>
This works for me as aspected.


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

avatar chmst chmst - change - 12 May 2024
Labels Added: bug
avatar Sieger66 Sieger66 - test_item - 12 May 2024 - Tested successfully
avatar Sieger66
Sieger66 - comment - 12 May 2024

I have tested this item ✅ successfully on 39a1c85

Works as aspected.

@chmst delete from summary at least this part: "This PR sets the permission back to core.manage on com_modules."

or alternatively change it to: This PR sets the permission back to core.manage on com_modules.

@carlitorweb : Now we need a second test.


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

avatar viocassel viocassel - test_item - 26 May 2024 - Tested successfully
avatar viocassel
viocassel - comment - 26 May 2024

I have tested this item ✅ successfully on 39a1c85


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

avatar richard67 richard67 - change - 26 May 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 26 May 2024

RTC


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

avatar Quy Quy - change - 21 Jun 2024
Labels Added: RTC
avatar MacJoom MacJoom - change - 27 Jun 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-06-27 09:55:44
Closed_By MacJoom
avatar MacJoom MacJoom - close - 27 Jun 2024
avatar MacJoom MacJoom - merge - 27 Jun 2024
avatar MacJoom
MacJoom - comment - 27 Jun 2024

Thank you!

Add a Comment

Login with GitHub to post a comment