diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js index 957b7724..2d8bc7a4 100644 --- a/www/manager6/dc/UserView.js +++ b/www/manager6/dc/UserView.js @@ -59,8 +59,8 @@ Ext.define('PVE.dc.UserView', { disabled: true, selModel: sm, enableFn: function(record) { - if (record.data.realmtype) { - let type = record.data.realmtype; + let type = record.data['realm-type']; + if (type) { if (PVE.Utils.authSchema[type]) { return !!PVE.Utils.authSchema[type].pwchange; } @@ -82,8 +82,8 @@ Ext.define('PVE.dc.UserView', { disabled: true, selModel: sm, enableFn: function(record) { - if (record.data.realmtype) { - let type = record.data.realmtype; + let type = record.data['realm-type']; + if (type) { if (PVE.Utils.authSchema[type]) { return !!PVE.Utils.authSchema[type].tfa; }