whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit f13211f: whoops, forgot a file
Date Sun, 14 Feb 2016 00:24:35 GMT
Commit f13211fcfa443a89590fe25bbe5c286540030577:
    whoops, forgot a file


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/roster/models/auth.rb                                    | +++++++++++++ 
------------------------------------------------------------
13 changes: 13 additions, 0 deletions.
------------------------------------------------------------


diff --git a/www/roster/models/auth.rb b/www/roster/models/auth.rb
new file mode 100644
index 0000000..406ba4c
--- /dev/null
+++ b/www/roster/models/auth.rb
@@ -0,0 +1,13 @@
+class Auth
+  def self.info(env)
+    ASF::Auth.decode(env)
+    info = {id: env.user}
+
+    secretary = ASF::Service.find('asf-secretary')
+    if secretary.members.include?  ASF::Person.find(env.user)
+      info[:secretary] = true
+    end
+
+    info
+  end
+end

Mime
View raw message