Skip to content

Commit 3237879

Browse files
committed
MAGETWO-55849: Customer can be deleted without Merchant permissions verification
1 parent 508c1c3 commit 3237879

File tree

1 file changed

+8
-7
lines changed
  • app/code/Magento/User/Block/User

1 file changed

+8
-7
lines changed

app/code/Magento/User/Block/User/Edit.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ protected function _construct()
7979
/**
8080
* Returns message that is displayed for admin when he deletes user from the system.
8181
* To see this message admin must do the following:
82-
* - open user for edition;
83-
* - fill current password in section "Current User Identity Verification";
82+
* - open user's account for editing;
83+
* - type current user's password in the "Current User Identity Verification" field
8484
* - click "Delete User" at top left part of the page;
8585
*
8686
* @return \Magento\Framework\Phrase
@@ -91,9 +91,9 @@ public function getDeleteMessage()
9191
}
9292

9393
/**
94-
* Returns url that for user deletion.
95-
* The following action is executed if admin navigates to returned url
96-
* Magento\User\Controller\Adminhtml\User\Delete::execute
94+
* Returns the URL that is used for user deletion.
95+
* The following Action is executed if admin navigates to returned url
96+
* Magento\User\Controller\Adminhtml\User\Delete
9797
*
9898
* @return string
9999
*/
@@ -103,8 +103,9 @@ public function getDeleteUrl()
103103
}
104104

105105
/**
106-
* Method is used to get id of user that admin edits.
107-
* It can be used to determine either admin opens page for creation or edition of already created user
106+
* This method is used to get the ID of the user who's account the Admin is editing.
107+
* It can be used to determine the reason Admin opens the page:
108+
* to create a new user account OR to edit the previously created user account
108109
*
109110
* @return int
110111
*/

0 commit comments

Comments
 (0)