You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/08/03 15:48:35 UTC
[whimsy] branch master updated: bypass posting authorization check
in test environment
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 <ru...@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