本番デプロイ設定: SSL, Kamal, API環境変数化, テスト修正
This commit is contained in:
@@ -7,8 +7,8 @@ class BoardPostsController < ApplicationController
|
||||
before_action :set_current_participant
|
||||
|
||||
def create
|
||||
# 参加チェック
|
||||
unless @board.member?(@current_participant) && @game.status == "in_progress"
|
||||
# 参加チェック(国選択フェーズでも共通掲示板への投稿を許可)
|
||||
unless @board.member?(@current_participant) && @game.status.in?(%w[power_selection in_progress])
|
||||
return redirect_to game_board_path(@game, @board), alert: "投稿権限がありません"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user