phcpress 2.8.10 → 2.8.11
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4654cd0d0ce4a4104375923b42778d6966037a22
|
4
|
+
data.tar.gz: 8974555458ea52454a0897b31b1e4c73d10f3bff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d810bba3e56d055cb4e74a14cd7fc31d74b07d46cf2c5947a803dd3bf559fed24876b212bfd9dd6dc2da3ee27c897be107df3a5b448f2a57877e54ffebc42910
|
7
|
+
data.tar.gz: 0bc223efb0ad3b5e5bc30b3f15b472958240983e64d5c30d83b64faeabec8167c0bad3167b22a24d561090132e5a06bd7a1d76df861da40a1b7e50ef598a77ad
|
@@ -4,7 +4,8 @@ module Phcpress
|
|
4
4
|
# Prevent CSRF attacks by raising an exception.
|
5
5
|
# For APIs, you may want to use :null_session instead.
|
6
6
|
protect_from_forgery with: :exception
|
7
|
-
|
7
|
+
before_action :current_user?
|
8
|
+
|
8
9
|
# Load Engine Helpers in Main App
|
9
10
|
helper Phcnotifi::Engine.helpers
|
10
11
|
# helper Phctitler::Engine.helpers
|
@@ -7,7 +7,8 @@ module Phcpress
|
|
7
7
|
|
8
8
|
# Filters & Security
|
9
9
|
layout 'layouts/phcpress/blogpost/blog_layout'
|
10
|
-
|
10
|
+
before_action :authenticate_user!
|
11
|
+
before_action :current_user?
|
11
12
|
before_action :set_blog_post, only: [:edit, :update, :destroy]
|
12
13
|
|
13
14
|
# Blog Post Index (/blog/posts)
|
data/lib/phcpress/version.rb
CHANGED