LDAP: properly check if Groups-feature is enabled

This commit is contained in:
Arthur Schiwon 2012-10-24 00:22:04 +02:00
parent f112d8cd69
commit c443993fc2
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;
}
/**