summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/field.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-03-29 16:59:44 +0100
committerMartin Kosek <mkosek@redhat.com>2013-04-04 12:53:59 +0200
commit5af3b146a36ed4902bb8c05242cf1554c400e31a (patch)
tree81f69cdf1fe9d561d9a290e8c8e6e85173982bd2 /install/ui/src/freeipa/field.js
parent43fc525fbb98f5b6ff09df172f969a1707a6cbf4 (diff)
downloadfreeipa-5af3b146a36ed4902bb8c05242cf1554c400e31a.tar.gz
freeipa-5af3b146a36ed4902bb8c05242cf1554c400e31a.tar.xz
freeipa-5af3b146a36ed4902bb8c05242cf1554c400e31a.zip
Add ipakrbokasdelegate option to service and host Web UI pages
https://fedorahosted.org/freeipa/ticket/3329
Diffstat (limited to 'install/ui/src/freeipa/field.js')
-rw-r--r--install/ui/src/freeipa/field.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/field.js b/install/ui/src/freeipa/field.js
index f972a6589..9654c8051 100644
--- a/install/ui/src/freeipa/field.js
+++ b/install/ui/src/freeipa/field.js
@@ -32,6 +32,12 @@ IPA.field = function(spec) {
that.container = null;
that.name = spec.name;
that.param = spec.param || spec.name;
+
+ /**
+ * For most options param == acl_param. But some params might be virtual and
+ * actual rights might be defined by other param.
+ */
+ that.acl_param = spec.acl_param || that.param;
that.label = spec.label;
that.tooltip = spec.tooltip;
that.measurement_unit = spec.measurement_unit;
@@ -188,7 +194,7 @@ IPA.field = function(spec) {
}
if (record.attributelevelrights) {
- var rights = record.attributelevelrights[that.param];
+ var rights = record.attributelevelrights[that.acl_param];
var oc_rights= record.attributelevelrights['objectclass'];
var write_oc = oc_rights && oc_rights.indexOf('w') > -1;