mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user