This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 21985de Revert "Legacy LDAP is no longer used"
21985de is described below
commit 21985de46e6d4428caa73a28b55caffc1c17cc3d
Author: Sebb <[email protected]>
AuthorDate: Sat Feb 9 15:26:12 2019 +0000
Revert "Legacy LDAP is no longer used"
This reverts commit 8043e4e756bce145c06360c3e70a29f9fa568e10.
---
lib/whimsy/asf/ldap.rb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 9ef2d24..8b73ccf 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -776,7 +776,12 @@ module ASF
# list of LDAP committees that this individual is a member of
def committees
+ # legacy LDAP entries
+ committees = weakref(:committees) do
+ Committee.list("member=uid=#{name},#{base}")
+ end
+ # add in projects (currently only includes GUINEAPIGS)
# Get list of project names where the person is an owner
projects = self.projects.select{|prj| prj.owners.include?
self}.map(&:name)
committees += ASF::Committee.pmcs.select do |pmc|