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 a937c62 Add ASF::Person#podlings
a937c62 is described below
commit a937c62a9d1b35d7603b04183735c337343d034a
Author: Sebb <[email protected]>
AuthorDate: Mon Mar 4 19:58:02 2019 +0000
Add ASF::Person#podlings
---
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 23e400b..f422904 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -811,6 +811,11 @@ module ASF
end
end
+ # list of Podlings that this individual is a member of
+ def podlings
+ ASF::Podling.current.select{|pod| project_owners.map(&:name).include?
pod.name}
+ end
+
# list of LDAP groups that this individual is a member of
def groups
weakref(:groups) do