ui: acl editor: disallow path editing for datastore permission views
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a6310ec294
commit
d89f91b538
@ -20,43 +20,46 @@ Ext.define('PBS.window.ACLEdit', {
|
|||||||
me.items = [];
|
me.items = [];
|
||||||
|
|
||||||
me.items.push({
|
me.items.push({
|
||||||
xtype: 'pbsPermissionPathSelector',
|
xtype: 'pmxDisplayEditField',
|
||||||
|
name: 'path',
|
||||||
fieldLabel: gettext('Path'),
|
fieldLabel: gettext('Path'),
|
||||||
|
editConfig: {
|
||||||
|
xtype: 'pbsPermissionPathSelector',
|
||||||
|
allowBlank: false,
|
||||||
|
},
|
||||||
editable: !me.path,
|
editable: !me.path,
|
||||||
value: me.path,
|
value: me.path,
|
||||||
name: 'path',
|
|
||||||
allowBlank: false,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (me.aclType === 'user') {
|
if (me.aclType === 'user') {
|
||||||
me.subject = gettext('User Permission');
|
me.subject = gettext('User Permission');
|
||||||
me.items.push({
|
me.items.push({
|
||||||
xtype: 'pbsUserSelector',
|
xtype: 'pbsUserSelector',
|
||||||
fieldLabel: gettext('User'),
|
|
||||||
name: 'auth-id',
|
name: 'auth-id',
|
||||||
|
fieldLabel: gettext('User'),
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
});
|
});
|
||||||
} else if (me.aclType === 'token') {
|
} else if (me.aclType === 'token') {
|
||||||
me.subject = gettext('API Token Permission');
|
me.subject = gettext('API Token Permission');
|
||||||
me.items.push({
|
me.items.push({
|
||||||
xtype: 'pbsTokenSelector',
|
xtype: 'pbsTokenSelector',
|
||||||
fieldLabel: gettext('API Token'),
|
|
||||||
name: 'auth-id',
|
name: 'auth-id',
|
||||||
|
fieldLabel: gettext('API Token'),
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
me.items.push({
|
me.items.push({
|
||||||
xtype: 'pmxRoleSelector',
|
xtype: 'pmxRoleSelector',
|
||||||
name: 'role',
|
name: 'role',
|
||||||
value: 'NoAccess',
|
|
||||||
fieldLabel: gettext('Role'),
|
fieldLabel: gettext('Role'),
|
||||||
|
value: 'NoAccess',
|
||||||
});
|
});
|
||||||
me.items.push({
|
me.items.push({
|
||||||
xtype: 'proxmoxcheckbox',
|
xtype: 'proxmoxcheckbox',
|
||||||
name: 'propagate',
|
name: 'propagate',
|
||||||
|
fieldLabel: gettext('Propagate'),
|
||||||
checked: true,
|
checked: true,
|
||||||
uncheckedValue: 0,
|
uncheckedValue: 0,
|
||||||
fieldLabel: gettext('Propagate'),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
Loading…
Reference in New Issue
Block a user