Commit a77f7c58 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4746 The is_this_account user method is now more permissive (only inetOrgPerson is needed)

parent 9184e06d
......@@ -454,6 +454,12 @@ class user extends simplePlugin
$this->was_locked = $this->attributesAccess['userPassword']->isLocked();
function is_this_account($attrs)
/* Only inetOrgPerson is needed, it has the two others as SUP classes */
return (isset($attrs['objectClass']) && in_array_ics('inetOrgPerson', $attrs['objectClass']));
function postCopyHook()
$this->attributesAccess['uid']->setDisabled($this->initially_was_account && !$this->is_template);
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