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: allow access to bootstrap related content
Date Thu, 05 Oct 2017 19:31:01 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 6237675  allow access to bootstrap related content
6237675 is described below

commit 62376757aaf838a1983397964f0bac8a39452b5f
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Oct 5 15:30:43 2017 -0400

    allow access to bootstrap related content
---
 www/board/agenda/config.ru | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/www/board/agenda/config.ru b/www/board/agenda/config.ru
index ccbbb26..03af951 100644
--- a/www/board/agenda/config.ru
+++ b/www/board/agenda/config.ru
@@ -4,6 +4,14 @@ require File.expand_path('../main.rb', __FILE__)
 
 # https://svn.apache.org/repos/infra/infrastructure/trunk/projects/whimsy/asf/rack.rb
 use ASF::Auth::MembersAndOfficers do |env|
+  # allow access to bootstrap related content
+  if 
+    %w(/app.js /sw.js /stylesheets/app.css).include? env['PATH_INFO'] or
+    env['PATH_INFO'] =~ /^[-\d]+\/bootstrap.html$/
+  then
+    next true
+  end
+
   # additionally authorize all invited guests
   agenda = dir('board_agenda_*.txt').sort.last
   if agenda

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

Mime
View raw message