We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 004b0b2 commit fa38ed7Copy full SHA for fa38ed7
app/code/Magento/User/Controller/Adminhtml/User/Delete.php
@@ -14,8 +14,8 @@ class Delete extends \Magento\User\Controller\Adminhtml\User
14
public function execute()
15
{
16
$currentUser = $this->_objectManager->get(\Magento\Backend\Model\Auth\Session::class)->getUser();
17
-
18
- if ($userId = (int)$this->getRequest()->getPost('user_id')) {
+ $userId = (int)$this->getRequest()->getPost('user_id');
+ if ($userId) {
19
if ($currentUser->getId() == $userId) {
20
$this->messageManager->addError(__('You cannot delete your own account.'));
21
$this->_redirect('adminhtml/*/edit', ['user_id' => $userId]);
0 commit comments