LDAP: properly check if Groups-feature is enabled

This commit is contained in:
Arthur Schiwon 2012-10-24 00:22:04 +02:00
parent 3833f2315a
commit 28e0fa7d1d
1 changed files with 2 additions and 3 deletions

View File

@ -28,10 +28,9 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface {
public function setConnector(lib\Connection &$connection) {
parent::setConnector($connection);
if(empty($this->connection->ldapGroupFilter) || empty($this->connection->ldapGroupMemberAssocAttr)) {
$this->enabled = false;
if(!empty($this->connection->ldapGroupFilter) && !empty($this->connection->ldapGroupMemberAssocAttr)) {
$this->enabled = true;
}
$this->enabled = true;
}
/**