[Issue] Remove "Administrators" name from the query to fetch an administrators role #36998
Closed
6 tasks done
Labels
Area: Framework
Component: Login
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: ready for confirmation
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: done
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Projects
This issue is automatically created based on existing pull request: #36971: Remove "Administrators" name from the query to fetch an administrators role
Description (*)
When we set up a review environment with the production database and we try to create an admin account, we get the "No Administrators role was found, data fixture needs to be run" error.
This is because the query searches for a role actually named "Administrators", but our client renamed the "Administrators" role to "All rights". Looking for a role with exactly that name isn't needed since it'll just use the first one it finds with the correct rights. This change makes sure it'll just use the first matching role it finds, regardless of name.
Related Pull Requests
Fixed Issues (if relevant)
No issue created.
Manual testing scenarios (*)
bin/magento admin:user:create --admin-user=johndoe --admin-firstname=John --admin-lastname=Doe --admin-password=JohnDoe123 --admin-email="johndoe@example.com"
Questions or comments
Contribution checklist (*)
Resolved issues:
The text was updated successfully, but these errors were encountered: