summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-04-02 15:22:07 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-04-10 13:19:36 +0200
commitdedc7889dc0e8987cc7cc6f70a67ae571c80a10b (patch)
tree8e7a9fb76dc25d029f03c0bc77925dfa9b966986 /install
parent31f156241959df107e361c2a8a81adc1cf6eb881 (diff)
downloadfreeipa-dedc7889dc0e8987cc7cc6f70a67ae571c80a10b.tar.gz
freeipa-dedc7889dc0e8987cc7cc6f70a67ae571c80a10b.tar.xz
freeipa-dedc7889dc0e8987cc7cc6f70a67ae571c80a10b.zip
Added attrs field to permission for target=subtree
Permission form was missing attrs field for target=subtree. All other target types have it. It uses multivalued text widget, same as filter, because we can't predict the target type. https://fedorahosted.org/freeipa/ticket/2592
Diffstat (limited to 'install')
-rw-r--r--install/ui/aci.js3
-rw-r--r--install/ui/test/aci_tests.js2
2 files changed, 4 insertions, 1 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js
index d65d3f884..21ffa718e 100644
--- a/install/ui/aci.js
+++ b/install/ui/aci.js
@@ -836,6 +836,9 @@ IPA.permission_target_policy = function (widget_name) {
additional: [
{
name: 'memberof'
+ },
+ {
+ name: 'attrs_multi'
}
]
},
diff --git a/install/ui/test/aci_tests.js b/install/ui/test/aci_tests.js
index c51107da4..4055120f2 100644
--- a/install/ui/test/aci_tests.js
+++ b/install/ui/test/aci_tests.js
@@ -282,7 +282,7 @@ test("Testing subtree target.", function() {
same(record.subtree[0], data.result.result.subtree, 'subtree set correctly');
- same(get_visible_rows(target_widget), ['memberof', 'subtree'], 'subtree row visible');
+ same(get_visible_rows(target_widget), ['memberof', 'subtree', 'attrs_multi'], 'subtree row visible');
});