Skip to content

Commit 5435316

Browse files
committed
MAGETWO-55849: Customer can be deleted without Merchant permissions verification
1 parent 59c37fa commit 5435316

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

app/code/Magento/User/view/adminhtml/web/js/delete-user-account.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1+
/**
2+
* Copyright © 2016 Magento. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
15
define([
26
"jquery"
37
], function($){
8+
'use strict';
49

510
return function (params, elem) {
611

712
elem.on('click', function() {
813
if ($.validator.validateElement($('[name="current_password"]'))) {
9-
postData = {'data' : {
10-
'user_id': params.objId,
11-
'current_password': $('[name="current_password"]').val()
12-
}}
13-
deleteConfirm(params.message, params.url, params.postData);
14+
var postData = {
15+
'data' : {
16+
'user_id': params.objId,
17+
'current_password': $('[name="current_password"]').val()
18+
}
19+
}
20+
deleteConfirm(params.message, params.url, postData);
1421
}
1522
});
1623
}

0 commit comments

Comments
 (0)