thecore_ui_rails_admin 3.0.9 → 3.0.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a21cf5cb664889b6398225db6b03f6eecee4b2b7a5b40be20faaaa74fc2a00b6
|
4
|
+
data.tar.gz: 0c8ddc740f438d4f92485486772f43f50eb4642f3ca49688f331c32b2442e552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1436b2d2c1330ba34395f1e487eb8db6b2ccbfeeee25520ecea3adfa23ad692bcefe940981d3190ff6b75545f5daef963e1d190691aab6d1899cfd272f0427f2
|
7
|
+
data.tar.gz: 3f2e1dc873dfb209b3af05e6aa233e57cd66607d69c25a350c07cd051991a19df1a99fc797afe08af61ae2eda415dc928a45013660efe565215b3e5b273bd90f
|
@@ -7,7 +7,7 @@ module ThecoreUiRailsAdminActionControllerConcern
|
|
7
7
|
# Prevent CSRF attacks by raising an exception.
|
8
8
|
# For APIs, you may want to use :null_session instead.
|
9
9
|
# layout 'thecore'
|
10
|
-
puts "Protecting from Forgery with exception and prepend
|
10
|
+
puts "Protecting from Forgery with exception and prepend"
|
11
11
|
protect_from_forgery with: :exception, prepend: true, except: :sign_in
|
12
12
|
rescue_from CanCan::AccessDenied do |exception|
|
13
13
|
redirect_to main_app.root_url, alert: exception.message
|
@@ -17,7 +17,6 @@ module ThecoreUiRailsAdminActionControllerConcern
|
|
17
17
|
before_action :store_user_location!, if: :storable_location?
|
18
18
|
before_action :configure_permitted_parameters, if: :devise_controller?
|
19
19
|
before_action :reject_locked!, if: :devise_controller?
|
20
|
-
before_action :debug_csrf
|
21
20
|
|
22
21
|
helper_method :reject_locked!
|
23
22
|
helper_method :require_admin!
|
@@ -148,9 +147,4 @@ module ThecoreUiRailsAdminActionControllerConcern
|
|
148
147
|
def is_storable?
|
149
148
|
true
|
150
149
|
end
|
151
|
-
|
152
|
-
def debug_csrf
|
153
|
-
puts "CSRF: #{params["authenticity_token"]}"
|
154
|
-
puts "Authenticity Token #{ENV["SECRET_KEY_BASE"]}"
|
155
|
-
end
|
156
150
|
end
|