diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2011-11-16 21:07:20 -0600 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-12-06 22:07:52 +0000 |
commit | a8ea42bda841c8773d68886614faf9efd38e33bd (patch) | |
tree | 92ddaae7ead82784eefb8dde81bc81e91945bfa0 /install/ui/user.js | |
parent | 6f0c16e4289dd1a68bfd673da52a511087d84b9a (diff) | |
download | freeipa-a8ea42bda841c8773d68886614faf9efd38e33bd.tar.gz freeipa-a8ea42bda841c8773d68886614faf9efd38e33bd.tar.xz freeipa-a8ea42bda841c8773d68886614faf9efd38e33bd.zip |
Fixed entity metadata resolution.
The current code assumes that an entity will always have a corresponding
LDAPObject on the server, so it looks for the metadata in a fixed location.
This assumption doesn't work for HBAC Test since it is a Command, not an
LDAPObject, so the metadata has to be obtained from a different location.
A new method get_default_metadata() has been added to allow each entity
to find the metadata from the correct location.
Ticket #388
Diffstat (limited to 'install/ui/user.js')
-rw-r--r-- | install/ui/user.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/install/ui/user.js b/install/ui/user.js index e06cd42f2..09b4b2a3c 100644 --- a/install/ui/user.js +++ b/install/ui/user.js @@ -29,14 +29,15 @@ IPA.user.entity = function(spec) { var that = IPA.entity(spec); - var link = true; - if (IPA.nav && IPA.nav.name == 'self-service') { - link = false; - } + that.init = function() { + that.entity_init(); - that.init = function(params) { + var link = true; + if (IPA.nav && IPA.nav.name == 'self-service') { + link = false; + } - params.builder.search_facet({ + that.builder.search_facet({ columns: [ 'uid', 'givenname', |