mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Skip CSRF authenticity
The way we are handling adding commercials (preload with javascript) leads to an outdated token otherwise.
This commit is contained in:
parent
84b25e3a54
commit
7338bc2648
1 changed files with 1 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ class CommercialsController < ApplicationController
|
|||
load_resource :conference, find_by: :short_title
|
||||
before_action :set_event
|
||||
load_and_authorize_resource through: :event
|
||||
skip_before_action :verify_authenticity_token
|
||||
|
||||
def create
|
||||
@commercial = @event.commercials.build(commercial_params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue