Removal of illegal options in JSON-RPC calls

Ticket https://fedorahosted.org/freeipa/ticket/2509 bans using non existent options. If such option is supplied command ends with error. It uncovered several cases in Web UI. This patch is fixing these cases.

Automember, Self-service and Delegation don't support 'pkey-only', 'size-limit' and 'rights' option. Pagination and rights check were disabled for them.

Automount map adder dialog was sending options for indirect map even if chosen type was direct (when those for indirect was filled earlier), also it was sending non-existant 'method' option.

https://fedorahosted.org/freeipa/ticket/2760
This commit is contained in:
Petr Vobornik
2012-05-25 08:57:47 +02:00
parent 870627de9a
commit 27b1dace2d
4 changed files with 28 additions and 7 deletions

View File

@@ -58,6 +58,7 @@ IPA.automember.entity = function(spec) {
group_type: 'group',
label: IPA.messages.objects.automember.usergrouprules,
details_facet: 'usergrouprule',
pagination: false,
columns: [
'cn',
'description'
@@ -69,6 +70,7 @@ IPA.automember.entity = function(spec) {
group_type: 'hostgroup',
label: IPA.messages.objects.automember.hostgrouprules,
details_facet: 'hostgrouprule',
pagination: false,
columns: [
'cn',
'description'
@@ -80,6 +82,7 @@ IPA.automember.entity = function(spec) {
group_type: 'group',
label: IPA.messages.objects.automember.usergrouprule,
disable_facet_tabs: true,
check_rights: false,
redirect_info: { tab: 'amgroup' }
}).
details_facet({
@@ -88,6 +91,7 @@ IPA.automember.entity = function(spec) {
group_type: 'hostgroup',
label: IPA.messages.objects.automember.hostgrouprule,
disable_facet_tabs: true,
check_rights: false,
redirect_info: { tab: 'amhostgroup' }
}).
adder_dialog({