diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-24 00:22:04 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-24 00:23:31 +0200 |
commit | c443993fc211203b675c0c3819f171e33cef5cd1 (patch) | |
tree | 9fb5519b3ebc8450b89f2dee41c093df4de642e0 | |
parent | f112d8cd69ed7080b5bba6ad259cb77802e49f56 (diff) | |
download | nextcloud-server-c443993fc211203b675c0c3819f171e33cef5cd1.tar.gz nextcloud-server-c443993fc211203b675c0c3819f171e33cef5cd1.zip |
LDAP: properly check if Groups-feature is enabled
-rw-r--r-- | apps/user_ldap/group_ldap.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index 9780fc75f9e..f1411782ad6 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -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; } /** |