- Notifications
You must be signed in to change notification settings - Fork 9.4k
add permission check for "reload data" data button #38279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add permission check for "reload data" data button #38279
Conversation
despite that the user does not have permission for refreshing the statistics button, it is shown and when pressed a "not permitted" page is shown. therefore add the check that is used with that controller action.
Hi @brosenberger. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
https://github.com/magento run all tests |
@magento create issue |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run all tests |
Hi @brosenberger, Thanks for the collaboration & contribution! ✔️ QA PassedPreconditions:
Steps to reproduce
Before: ✖️ ![]() After: ✔️ There will be no ![]() ![]() Builds are failed. Hence, moving this PR to Extended Testing. Thanks |
@magento run all tests |
@magento run all tests |
@magento run Functional Tests EE |
14454de
into magento:2.4-develop
despite that the user does not have permission for refreshing the statistics button, it is shown and when pressed a "not permitted" page is shown.
therefore add the check that is used with that controller action.
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Expected:
3. no "Reload Data" button is shown, as there is no permission for that
Actual:
3. the "Reload Data" button is shown and clickable
4. on click of the "Reload Data" button a "not permitted"-page is shown to the user
Questions or comments
Additional to that missing permission check, this function (including the controller \Magento\Backend\Controller\Adminhtml\Dashboard\RefreshStatistics) should be migrated to the reporting module for dependencies sakes and the refreshstatistics.phtml be renamed to dashboard_actions.phtml or so as it already shows all childhtml elements (so anyone could contribute new actions) - the reload-feature should not be any different
Contribution checklist (*)
Resolved issues: