MXS-2574: Prevent alterations to current user
Due to the fact that the alteration is emulated by deletion and creation of the user in question, the current user cannot be altered.
This commit is contained in:
@ -141,6 +141,10 @@ exports.builder = function(yargs) {
|
||||
}, function(argv) {
|
||||
maxctrl(argv, function(host) {
|
||||
|
||||
if (argv.u == argv.name) {
|
||||
return error('Cannot alter current user')
|
||||
}
|
||||
|
||||
var user = {
|
||||
'data': {
|
||||
'id': argv.name,
|
||||
|
||||
Reference in New Issue
Block a user