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: 06ba0b5f1b04e8731fc69f9d919fb5b96673ad86
4
- data.tar.gz: 696a29808e911ed6d17e67ea9e84e858dcfd19b5
3
+ metadata.gz: 4654cd0d0ce4a4104375923b42778d6966037a22
4
+ data.tar.gz: 8974555458ea52454a0897b31b1e4c73d10f3bff
5
5
  SHA512:
6
- metadata.gz: 2742643c03937180b573d93bd6f35f9f3f1d88a4f370c71b9373e7c613177fde86329fa020bcfd7087ae903f8ea8bfc573e282d22ec5450e77aed6c908329059
7
- data.tar.gz: dd0b957d208753320d54bfbb49c246b162020a6966e2d457221f2f80062edec01bcf474fbe085ad9eb7e603152c8faa89461fa272527157cd6ada383c9856b34
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
- #before_action :authenticate_user!
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)
@@ -8,6 +8,7 @@ module Phcpress
8
8
  # Filters & Security
9
9
  layout 'layouts/phcpress/newspost/news_layout'
10
10
  before_action :authenticate_user!
11
+ before_action :current_user?
11
12
  before_action :set_news_post, only: [:edit, :update, :destroy]
12
13
 
13
14
  # News Post Index (/news/posts)
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = "2.8.10"
2
+ VERSION = "2.8.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.10
4
+ version: 2.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts