whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: start to rough in authentication
Date Tue, 17 Jan 2017 14:58:03 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  8bb9a81   start to rough in authentication
8bb9a81 is described below

commit 8bb9a81a546fe0fcb18c35aebfbd485fc082ffc4
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Tue Jan 17 09:57:40 2017 -0500

    start to rough in authentication
---
 lib/whimsy/asf/podlings.rb | 5 +++++
 www/roster/main.rb         | 1 +
 www/roster/models/ppmc.rb  | 1 +
 3 files changed, 7 insertions(+)

diff --git a/lib/whimsy/asf/podlings.rb b/lib/whimsy/asf/podlings.rb
index 4c383b0..64c6043 100644
--- a/lib/whimsy/asf/podlings.rb
+++ b/lib/whimsy/asf/podlings.rb
@@ -142,6 +142,11 @@ module ASF
       return self.send name if self.respond_to? name
     end
 
+    # list of PPMC owners
+    def owners
+      ASF::Project.find(id).owners
+    end
+
     # list of PPMC members
     def members
       ASF::Project.find(id).members
diff --git a/www/roster/main.rb b/www/roster/main.rb
index db84a77..727c208 100755
--- a/www/roster/main.rb
+++ b/www/roster/main.rb
@@ -132,6 +132,7 @@ get '/ppmc/:name.json' do |name|
 end
 
 get '/ppmc/:name' do |name|
+  @auth = Auth.info(env)
   @ppmc = PPMC.serialize(name, env)
   pass unless @ppmc
   _html :ppmc
diff --git a/www/roster/models/ppmc.rb b/www/roster/models/ppmc.rb
index 00325c2..417c6e4 100644
--- a/www/roster/models/ppmc.rb
+++ b/www/roster/models/ppmc.rb
@@ -20,6 +20,7 @@ class PPMC
       schedule: ppmc.reporting,
       established: ppmc.startdate.to_s,
       mentors: ppmc.mentors,
+      owners: ppmc.owners.map {|person| person.id},
       roster: ppmc.members.map {|person|
         [person.id, {name: person.public_name, member: person.asf_member?}]
       }.to_h,

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message