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 16:16:23 UTC
[whimsy] branch master updated: try double brackets
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 0e5bd64 try double brackets
0e5bd64 is described below
commit 0e5bd649f9f7410beebc8c220e4a18305f42c0c0
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat Aug 3 12:16:11 2019 -0400
try double brackets
---
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 cd66ade..0ffaf0b 100644
--- a/www/board/agenda/views/actions/post.json.rb
+++ b/www/board/agenda/views/actions/post.json.rb
@@ -19,7 +19,7 @@ attach = nil
# Determine if user is authorized
user = ASF::Person.find(env.user)
member_or_officer = user.asf_member? or ASF.pmc_chairs.include? user
-credentials = member_or_officer ? nil : ['--username', 'whimsysvn']
+credentials = member_or_officer ? nil : [['--username', 'whimsysvn']]
Agenda.update(@agenda, @message, auth: credentials) do |agenda|
# quick parse of agenda