mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-16 02:37:46 +00:00
ui: user edit: fix filtering out pam realm on user-add
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6bac67195e
commit
cc45a16322
@ -84,29 +84,8 @@ Ext.define('PBS.window.UserEdit', {
|
|||||||
hidden: '{!isCreate}',
|
hidden: '{!isCreate}',
|
||||||
disabled: '{!isCreate}',
|
disabled: '{!isCreate}',
|
||||||
},
|
},
|
||||||
|
|
||||||
submitValue: true,
|
submitValue: true,
|
||||||
// Let's override the default controller so that we can
|
storeFilter: rec => rec.data?.type !== 'pam',
|
||||||
// remove the PAM realm. We don't want to manually add users
|
|
||||||
// for the PAM realm.
|
|
||||||
controller: {
|
|
||||||
xclass: 'Ext.app.ViewController',
|
|
||||||
|
|
||||||
init: function(view) {
|
|
||||||
view.store.on('load', this.onLoad, view);
|
|
||||||
},
|
|
||||||
|
|
||||||
onLoad: function(store, records, success) {
|
|
||||||
if (!success) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let pamRecord = this.store.findRecord('realm', 'pam', 0, false, true, true);
|
|
||||||
|
|
||||||
this.store.remove(pamRecord);
|
|
||||||
this.setValue('pbs');
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
|
Loading…
Reference in New Issue
Block a user