LDAP: fix again proper check if groups are enabled
This commit is contained in:
parent
b942c1253e
commit
246221a677
|
@ -28,7 +28,9 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface {
|
||||||
|
|
||||||
public function setConnector(lib\Connection &$connection) {
|
public function setConnector(lib\Connection &$connection) {
|
||||||
parent::setConnector($connection);
|
parent::setConnector($connection);
|
||||||
if(!empty($this->connection->ldapGroupFilter) && !empty($this->connection->ldapGroupMemberAssocAttr)) {
|
$filter = $this->connection->ldapGroupFilter;
|
||||||
|
$gassoc = $this->connection->ldapGroupMemberAssocAttr;
|
||||||
|
if(!empty($filter) && !empty($gassoc)) {
|
||||||
$this->enabled = true;
|
$this->enabled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue