[Pkg-owncloud-commits] [owncloud] 01/394: LDAP: properly check if Groups-feature is enabled
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:12 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 28e0fa7d1d887d289bad51b763ce8e1d1d359a31
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Wed Oct 24 00:22:04 2012 +0200
LDAP: properly check if Groups-feature is enabled
---
apps/user_ldap/group_ldap.php | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index 9780fc7..f141178 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;
}
/**
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list