diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-07-30 14:30:31 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-08-14 08:09:31 +0200 |
commit | 271043ccf7dc16dd2c2f5d3dc99199a55ebe65b2 (patch) | |
tree | f4e4f0d0a5de052eaa219268cc66f5352b7c92cb /install/ui/group.js | |
parent | 44e86aa3bb7206991bbe1118ee3a35b6949b6ac9 (diff) | |
download | freeipa-271043ccf7dc16dd2c2f5d3dc99199a55ebe65b2.tar.gz freeipa-271043ccf7dc16dd2c2f5d3dc99199a55ebe65b2.tar.xz freeipa-271043ccf7dc16dd2c2f5d3dc99199a55ebe65b2.zip |
Make group external
New action for creating plain group external. Posix group can't be made external.
https://fedorahosted.org/freeipa/ticket/2895
Diffstat (limited to 'install/ui/group.js')
-rw-r--r-- | install/ui/group.js | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/install/ui/group.js b/install/ui/group.js index ad26676ab..f8d8e666f 100644 --- a/install/ui/group.js +++ b/install/ui/group.js @@ -53,7 +53,18 @@ IPA.group.entity = function(spec) { 'gidnumber' ] } - ] + ], + actions: [ + IPA.select_action, + IPA.group.make_external_action, + IPA.delete_action + ], + header_actions: ['select_action', 'make_external', 'delete'], + state: { + evaluators: [ + IPA.object_class_evaluator + ] + } }). association_facet({ name: 'member_user', @@ -186,4 +197,20 @@ IPA.group_adder_dialog = function(spec) { return that; }; +IPA.group.make_external_action = function(spec) { + + spec = spec || {}; + spec.name = spec.name || 'make_external'; + spec.method = spec.method || 'mod'; + spec.label = spec.label || IPA.messages.objects.group.make_external; + spec.disable_cond = spec.disable_cond || ['oc_posixgroup','oc_ipaexternalgroup']; + spec.options = spec.options || { + external: true + }; + + var that = IPA.object_action(spec); + + return that; +}; + IPA.register('group', IPA.group.entity); |