]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: properly check if Groups-feature is enabled
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 23 Oct 2012 22:22:04 +0000 (00:22 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 23 Oct 2012 22:23:31 +0000 (00:23 +0200)
apps/user_ldap/group_ldap.php

index 9780fc75f9e9821eb7b1ae4405d285164867c945..f1411782ad69a85c424b453bf5706721066e3db0 100644 (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;
        }
 
        /**