You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2018/07/02 17:38:41 UTC

[whimsy] branch master updated: Provide user project_owner details

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 52e11a0  Provide user project_owner details
52e11a0 is described below

commit 52e11a0236c01713fc964c9b1d818764121a71dc
Author: Sebb <se...@apache.org>
AuthorDate: Mon Jul 2 18:38:40 2018 +0100

    Provide user project_owner details
---
 lib/whimsy/asf/ldap.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 81a667d..a8b7870 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -782,6 +782,14 @@ module ASF
       end
     end
 
+    # list of LDAP projects that this individual is an owner of - i.e. on (P)PMC
+    # not all PMC currently have project groups
+    def project_owners
+      weakref(:project_owners) do
+        Project.list("owner=uid=#{name},#{base}")
+      end
+    end
+
     # list of LDAP groups that this individual is a member of
     def groups
       weakref(:groups) do