phcpresspro 77.0.0 → 78.0.0
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: a6843a5599274664ebf254c1c0c9f50b6f29944768e5655680e59803c27444a6
|
4
|
+
data.tar.gz: cbde8be8de9e961650ea23c2ccd86f6f87263db32d8fce9866bb38e76d05edb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc5dd6ff0420517af2cfcc6771178db8311103a0397830822509d03da5676e5d9b19fd9ea897f2dea1c764772c84f7999b53bbc2e2dd6b5320fc6598a73d5ada
|
7
|
+
data.tar.gz: b963ba1358de954e49fe7b587adb6ca787d7b9d41754576f639d8f1c06ff891566053c282ba03c9509fd257f3e592802ec4afd89c7b03dd8ca8b81d16f0988e1
|
@@ -4,7 +4,7 @@ module Phcpresspro
|
|
4
4
|
class Article::CategoriesController < ApplicationController
|
5
5
|
|
6
6
|
# Security & Action Filters
|
7
|
-
before_action :
|
7
|
+
before_action :authenticate_user!
|
8
8
|
before_action :set_paper_trail_whodunnit
|
9
9
|
before_action :set_article_category, only: [:show, :edit, :update, :destroy]
|
10
10
|
|
@@ -4,13 +4,13 @@ module Phcpresspro
|
|
4
4
|
class Article::PostsController < ApplicationController
|
5
5
|
|
6
6
|
# Security, Layouts & Action Filters
|
7
|
-
before_action :
|
7
|
+
before_action :authenticate_user!
|
8
8
|
before_action :set_paper_trail_whodunnit
|
9
9
|
before_action :set_article_post, only: [:show, :edit, :update, :destroy]
|
10
10
|
|
11
11
|
# Article Index
|
12
12
|
def index
|
13
|
-
@article_posts = Article::Post.where(org_id:
|
13
|
+
@article_posts = Article::Post.where(org_id: current_user.org_id)
|
14
14
|
end
|
15
15
|
|
16
16
|
# Article Show
|
data/lib/phcpresspro/version.rb
CHANGED