このコミットが含まれているのは:
@@ -45,6 +45,7 @@ class TheatreCommentsController < ApplicationController
|
||||
|
||||
comment = TheatreComment.find_by(theatre_id:, no:)
|
||||
return head :not_found unless comment
|
||||
return head :forbidden unless comment.user == current_user
|
||||
|
||||
comment.discard!
|
||||
|
||||
|
||||
新しい課題から参照
ユーザをブロックする