File 0003-Skip-authenticity-token-for-cib-show-to-enable-dashb.patch of Package hawk2
From a5ecac42ea9ff6c0273db4b5dfb245e57ad46fc8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
Date: Tue, 16 Aug 2016 16:10:49 +0200
Subject: [PATCH] Skip authenticity token for cib#show to enable dashboard
(bsc#989794)
---
hawk/app/controllers/cib_controller.rb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hawk/app/controllers/cib_controller.rb b/hawk/app/controllers/cib_controller.rb
index bc5d543..3f082fa 100644
--- a/hawk/app/controllers/cib_controller.rb
+++ b/hawk/app/controllers/cib_controller.rb
@@ -6,6 +6,8 @@ class CibController < ApplicationController
before_filter :set_title
before_filter :set_cib
+ skip_before_action :verify_authenticity_token, only: [:show]
+
def show
respond_to do |format|
format.html
--
2.9.0