mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-19 23:36:03 +00:00
ui: user view: adapt to users response API changes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a901e4adc3
commit
c0e3df11d8
@ -59,8 +59,8 @@ Ext.define('PVE.dc.UserView', {
|
|||||||
disabled: true,
|
disabled: true,
|
||||||
selModel: sm,
|
selModel: sm,
|
||||||
enableFn: function(record) {
|
enableFn: function(record) {
|
||||||
if (record.data.realmtype) {
|
let type = record.data['realm-type'];
|
||||||
let type = record.data.realmtype;
|
if (type) {
|
||||||
if (PVE.Utils.authSchema[type]) {
|
if (PVE.Utils.authSchema[type]) {
|
||||||
return !!PVE.Utils.authSchema[type].pwchange;
|
return !!PVE.Utils.authSchema[type].pwchange;
|
||||||
}
|
}
|
||||||
@ -82,8 +82,8 @@ Ext.define('PVE.dc.UserView', {
|
|||||||
disabled: true,
|
disabled: true,
|
||||||
selModel: sm,
|
selModel: sm,
|
||||||
enableFn: function(record) {
|
enableFn: function(record) {
|
||||||
if (record.data.realmtype) {
|
let type = record.data['realm-type'];
|
||||||
let type = record.data.realmtype;
|
if (type) {
|
||||||
if (PVE.Utils.authSchema[type]) {
|
if (PVE.Utils.authSchema[type]) {
|
||||||
return !!PVE.Utils.authSchema[type].tfa;
|
return !!PVE.Utils.authSchema[type].tfa;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user