-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
No throw when Mage_Admin_Model_User::delete fails #950
Comments
@midlan In my opinion this is bug, because is ignored returned value from I suggest that there should be (at least): Use return value of model here https://github.com/OpenMage/magento-lts/blob/1.9.4.x/app/code/core/Mage/Adminhtml/controllers/Permissions/UserController.php#L187
Log exception which is lost here https://github.com/OpenMage/magento-lts/blob/1.9.4.x/app/code/core/Mage/Admin/Model/Resource/User.php#L209:
|
I think instead of returning false on that second to last line of User.php the exception should simply be rethrown ( |
@colinmollenhour |
It should be noted then as a BC change. We are still working out exactly how to deal with BC changes, though... |
Closing as fixed. |
Today, for the first time, the number of reported issues is equal to the number of open PRs. 135 :)) |
https://github.com/OpenMage/magento-lts/blob/1.9.4.x/app/code/core/Mage/Admin/Model/Resource/User.php#L219
inside this catch is not thrown any error, so user is not deleted and you get green message:
But the user still remains in database and also can login. It return
false
but the return value is ignored in controller: \Mage_Adminhtml_Permissions_UserController::deleteActionIt is bug or it is there for some purpose?
The text was updated successfully, but these errors were encountered: