mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed labels in Sudo, HBAC rules
Fixed regression in labels introduced by refactoring #1515. https://fedorahosted.org/freeipa/ticket/1515
This commit is contained in:
parent
689f7ba01a
commit
49e5555b11
@ -412,8 +412,8 @@ IPA.hbacrule_details_facet = function(spec) {
|
|||||||
name: 'rule',
|
name: 'rule',
|
||||||
radio_name: 'servicecategory',
|
radio_name: 'servicecategory',
|
||||||
options: [
|
options: [
|
||||||
{ 'value': 'all', 'label': IPA.messages.objects.hbacrule.any_host },
|
{ 'value': 'all', 'label': IPA.messages.objects.hbacrule.any_service },
|
||||||
{ 'value': '', 'label': IPA.messages.objects.hbacrule.specified_hosts }
|
{ 'value': '', 'label': IPA.messages.objects.hbacrule.specified_services }
|
||||||
],
|
],
|
||||||
tables: [
|
tables: [
|
||||||
{ 'name': 'memberservice_hbacsvc' },
|
{ 'name': 'memberservice_hbacsvc' },
|
||||||
|
@ -237,32 +237,21 @@ IPA.sudorule_details_facet = function(spec) {
|
|||||||
// Options
|
// Options
|
||||||
//
|
//
|
||||||
|
|
||||||
spec.fields.push.apply(spec.fields, [
|
spec.fields.push(
|
||||||
{
|
{
|
||||||
name: 'ipasudoopt',
|
name: 'ipasudoopt',
|
||||||
widget: 'options.ipasudoopt'
|
widget: 'options.ipasudoopt'
|
||||||
}
|
}
|
||||||
]);
|
);
|
||||||
|
|
||||||
spec.widgets.push.apply(spec.widgets, [
|
spec.widgets.push(
|
||||||
{
|
{
|
||||||
factory: IPA.sudo.options_section,
|
factory: IPA.sudo.options_section,
|
||||||
name: 'options',
|
name: 'options',
|
||||||
label: IPA.messages.objects.sudorule.options,
|
label: IPA.messages.objects.sudorule.options,
|
||||||
facet: that
|
facet: that
|
||||||
}
|
}
|
||||||
]);
|
);
|
||||||
|
|
||||||
/*
|
|
||||||
function options_section(){
|
|
||||||
var section = IPA.sudo.options_section({
|
|
||||||
name: 'options',
|
|
||||||
label: IPA.messages.objects.sudorule.options,
|
|
||||||
entity: that.entity,
|
|
||||||
facet: that
|
|
||||||
});
|
|
||||||
return section;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Users
|
// Users
|
||||||
@ -469,11 +458,11 @@ IPA.sudorule_details_facet = function(spec) {
|
|||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
value: 'all',
|
value: 'all',
|
||||||
label: IPA.messages.objects.sudorule.anyone
|
label: IPA.messages.objects.sudorule.any_command
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '',
|
value: '',
|
||||||
label: IPA.messages.objects.sudorule.specified_users
|
label: IPA.messages.objects.sudorule.specified_commands
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
tables: [
|
tables: [
|
||||||
|
Loading…
Reference in New Issue
Block a user