whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Provide user project_owner details
Date Mon, 02 Jul 2018 17:38:41 GMT
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 <sebb@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


Mime
View raw message