Commit 51cfb3d9 authored by Jonathan Swaelens's avatar Jonathan Swaelens
Browse files

Merge branch...

Merge branch '6155-force-gidnumber-in-posixgroup-doesn-t-work-when-create-from-a-template' into '1.4-dev'

Resolve "Force gidNumber in posixgroup doesn't work when create from a template"

Closes #6155

See merge request fusiondirectory/fd-plugins!905
Showing with 13 additions and 0 deletions
+13 -0
......@@ -216,6 +216,19 @@ class posixGroup extends simplePlugin
return $errors;
}
//Below function allows GID to be retrieved from template
function adapt_from_template (array $attrs, array $skip = [])
{
parent::adapt_from_template($attrs, $skip);
if (isset($this->attrs['force_id'])) {
$this->force_id = ($this->attrs['force_id'][0] != 'FALSE');
}
$this->fromTemplate = TRUE;
}
function addUser ($dn, $uid)
{
$this->attributesAccess['memberUid']->addValue($dn,
......
Supports Markdown
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