Maintenance: authentication_check Controller callback runs after CSRF token check which leads to failing POST/PUT, non-Session authenticated requests.

This commit is contained in:
Thorsten Eckel 2019-12-02 14:17:57 +01:00
parent 47778f2d2f
commit 96d300b912

View file

@ -1,7 +1,7 @@
# Copyright (C) 2012-2017 Zammad Foundation, http://zammad-foundation.org/
class KnowledgeBase::BaseController < ApplicationController
before_action :authentication_check
prepend_before_action :authentication_check
before_action :ensure_editor_or_reader
before_action :ensure_editor, only: %i[create update destroy]