Merge pull request #1035 from Jennydmz/BUG-10123
BUG-10123 The Default Administrator User could change its ROLE.
This commit is contained in:
@@ -1043,6 +1043,14 @@ function saveUser()
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (USR_UID == '00000000000000000000000000000001') {
|
||||
if (Ext.getCmp('USR_ROLE').getValue() != 'PROCESSMAKER_ADMIN') {
|
||||
Ext.Msg.alert( _('ID_ERROR'), 'The Role of this user must be PROCESSMAKER_ADMIN, because this is the default Administrator User.');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
Ext.Msg.alert( _('ID_ERROR'), _('ID_MSG_ERROR_USR_USERNAME'));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user