This PR fix a regression from PR #39038 . As of right now, if someone does not have core.admin (Configure ACL & Options) permission edit a user account and save it, he will always be redirected to admin dashboard instead of staying on edit screen (for Save action) or stay on Users Management screen (for Save & Close action)
Testing Instructions
Login to administrator area of your site using an account does not have Configure ACL & Options permission in com_users. Please make sure you give him core.manage (Access Administration Interface) permission and other permissions so that he can access to Users Management screen to edit user account.
Edit a user account, save it.
Actual result BEFORE applying this Pull Request
You are being redirected to administrator Home Dashboard
Expected result AFTER applying this Pull Request
You stay on user edit screen or users management screen (depend on you use Save or Save & Close button)
Additional, please test and make sure the issue #39028 is still fixed with this PR, too
Link to documentations
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed
AFTER applying this Pull Request,
The manager stayed on the user edit screen after "save"
The require password reset (issue #39028) still functions correctly.
I have tested this item ✅ successfully on d2998c5
Tested successfully.
AFTER applying this Pull Request,
The manager stayed on the user edit screen after "save"
The require password reset (issue #39028) still functions correctly.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42872.