fixes for new pve-access-control

This commit is contained in:
Dietmar Maurer 2012-05-22 11:41:52 +02:00
parent 5ad7ae4ac9
commit 3003548fad
4 changed files with 18 additions and 7 deletions

View File

@ -1,3 +1,9 @@
pve-manager (2.1-5) unstable; urgency=low
* fixes for new pve-access-control (Auth plugins).
-- Proxmox Support Team <support@proxmox.com> Tue, 22 May 2012 10:49:37 +0200
pve-manager (2.1-4) unstable; urgency=low
* updated russian translation

View File

@ -2,7 +2,7 @@ RELEASE=2.1
VERSION=2.1
PACKAGE=pve-manager
PACKAGERELEASE=4
PACKAGERELEASE=5
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5

View File

@ -89,9 +89,10 @@ Ext.define('PVE.dc.AuthEdit', {
allowBlank: false
},
{
xtype: 'textfield',
xtype: 'pvetextfield',
fieldLabel: gettext('Fallback Server'),
name: 'server2'
deleteEmpty: !me.create,
name: 'server2'
},
{
xtype: 'numberfield',
@ -115,8 +116,12 @@ Ext.define('PVE.dc.AuthEdit', {
column2: column2,
onGetValues: function(values) {
if (!values.port) {
values.port = 0;
if (!me.create) {
PVE.Utils.assemble_field_data(values, { 'delete': 'port' });
}
delete values.port;
}
if (me.create) {
values.type = me.authType;
}

View File

@ -26,7 +26,7 @@ Ext.define('PVE.dc.AuthView', {
return;
}
if (rec.data.type === 'builtin') {
if (rec.data.type === 'pve' || rec.data.type === 'pam') {
return;
}
@ -43,7 +43,7 @@ Ext.define('PVE.dc.AuthView', {
disabled: true,
selModel: sm,
enableFn: function(rec) {
return rec.data.type !== 'builtin';
return !(rec.data.type === 'pve' || rec.data.type === 'pam');
},
handler: run_editor
});
@ -57,7 +57,7 @@ Ext.define('PVE.dc.AuthView', {
"'" + rec.data.realm + "'");
},
enableFn: function(rec) {
return rec.data.type !== 'builtin';
return !(rec.data.type === 'pve' || rec.data.type === 'pam');
},
handler: function(btn, event, rec) {
var realm = rec.data.realm;