Commit 75d7feb2 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3237 Disabling byhost option when systems plugin is not installed

parent b4b3103d
......@@ -200,6 +200,12 @@ class posixAccount extends simplePlugin
$this->attributesAccess['gecos']->setVisible(FALSE);
$this->attributesAccess['trustMode']->setInLdap(FALSE);
if (!class_available('systemManagement')) {
$this->attributesAccess['trustMode']->setChoices(
array('', 'fullaccess'),
array(_('disabled'), _('full access'))
);
}
$this->attributesAccess['trustMode']->setManagedAttributes(
array(
'multiplevalues' => array('notbyhost' => array('','fullaccess')),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment