Skip CSRF verification for changeset comment actions

Fixes #2057
This commit is contained in:
Tom Hughes 2018-11-13 13:17:19 +00:00
parent 3790dd2aba
commit 4deffa5e40

View file

@ -1,4 +1,5 @@
class ChangesetCommentsController < ApplicationController
skip_before_action :verify_authenticity_token, :except => [:index]
before_action :authorize_web, :only => [:index]
before_action :set_locale, :only => [:index]
before_action :authorize, :only => [:create, :destroy, :restore]