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: bypass posting authorization check in test environment
Date Sat, 03 Aug 2019 15:48:35 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 b300926  bypass posting authorization check in test environment
b300926 is described below

commit b300926afc8325af4242e66f78c2092253102056
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sat Aug 3 11:48:11 2019 -0400

    bypass posting authorization check in test environment
---
 www/board/agenda/views/actions/post.json.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/actions/post.json.rb b/www/board/agenda/views/actions/post.json.rb
index 467e4e1..cd66ade 100644
--- a/www/board/agenda/views/actions/post.json.rb
+++ b/www/board/agenda/views/actions/post.json.rb
@@ -41,7 +41,7 @@ Agenda.update(@agenda, @message, auth: credentials) do |agenda|
         @digest ||= report['digest']
       end
     end
-  else
+  elsif not ENV['RACK_ENV'] == 'test'
     raise "not authorized to post to the board agenda" unless member_or_officer
   end
 


Mime
View raw message