Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 0deddb6

Browse files
committed
Fixed bug in getMemberStatusByUserAndVo()
* Use ldap base from variable in AdapterLdap::getMemberStatusByUserAndVo()
1 parent b283c70 commit 0deddb6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
[Fixed]
6+
- Use ldap base from variable in AdapterLdap::getMemberStatusByUserAndVo() instead of static string
57

68
## [v3.0.2]
79
[Fixed]

lib/AdapterLdap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public function getMemberStatusByUserAndVo($user, $vo)
321321
$groupId = $this->connector->searchForEntity(
322322
$this->ldapBase,
323323
"(&(objectClass=perunGroup)(cn=members)(perunVoId=" . $vo->getId() .
324-
")(uniqueMember=perunUserId=" . $user->getId() . ",ou=People,dc=perun,dc=cesnet,dc=cz))",
324+
")(uniqueMember=perunUserId=" . $user->getId() . ", ou=People," . $this->ldapBase . "))",
325325
array("perunGroupid")
326326
);
327327

0 commit comments

Comments
 (0)