LDAP: properly check if Groups-feature is enabled
This commit is contained in:
parent
f112d8cd69
commit
c443993fc2
|
@ -28,11 +28,10 @@ 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)) {
|
if(!empty($this->connection->ldapGroupFilter) && !empty($this->connection->ldapGroupMemberAssocAttr)) {
|
||||||
$this->enabled = false;
|
|
||||||
}
|
|
||||||
$this->enabled = true;
|
$this->enabled = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief is user in group?
|
* @brief is user in group?
|
||||||
|
|
Loading…
Reference in New Issue