summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-10-24 00:22:04 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-10-24 00:23:31 +0200
commitc443993fc211203b675c0c3819f171e33cef5cd1 (patch)
tree9fb5519b3ebc8450b89f2dee41c093df4de642e0
parentf112d8cd69ed7080b5bba6ad259cb77802e49f56 (diff)
downloadnextcloud-server-c443993fc211203b675c0c3819f171e33cef5cd1.tar.gz
nextcloud-server-c443993fc211203b675c0c3819f171e33cef5cd1.zip
LDAP: properly check if Groups-feature is enabled
-rw-r--r--apps/user_ldap/group_ldap.php5
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;
}
/**