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: 5a24f4867c5260ae91b588dde91d046adae8747d097c7157d7266c687b779b7c
4
- data.tar.gz: 10e5e51d6d43f839c9abc4c3e1c8babfd413b1196024fbeb8fc1b73a2d199d41
3
+ metadata.gz: a6843a5599274664ebf254c1c0c9f50b6f29944768e5655680e59803c27444a6
4
+ data.tar.gz: cbde8be8de9e961650ea23c2ccd86f6f87263db32d8fce9866bb38e76d05edb3
5
5
  SHA512:
6
- metadata.gz: 96e615b2aa594888ad519b592a780498ce8c5fd5b9b6a0dbb27caf37559fdec68909722ee701591c8f274ac773ee9b0afdbe525c6e15554335b347ed01f982fa
7
- data.tar.gz: a54d9e3278fcc5fd39d5dcee826475c77c0ba0b7bf79531b276859b3d78bef40014b52029fadacab982a1a9546b2aa7e368f08f8fc6d424ce4b0e9be8edec5a5
6
+ metadata.gz: dc5dd6ff0420517af2cfcc6771178db8311103a0397830822509d03da5676e5d9b19fd9ea897f2dea1c764772c84f7999b53bbc2e2dd6b5320fc6598a73d5ada
7
+ data.tar.gz: b963ba1358de954e49fe7b587adb6ca787d7b9d41754576f639d8f1c06ff891566053c282ba03c9509fd257f3e592802ec4afd89c7b03dd8ca8b81d16f0988e1
@@ -16,5 +16,11 @@ module Phcpresspro
16
16
 
17
17
  private
18
18
 
19
+ def phcaccounts_pro_admin_filter!
20
+ if current_user.admin?
21
+ else
22
+ end
23
+ end
24
+
19
25
  end
20
26
  end
@@ -4,7 +4,7 @@ module Phcpresspro
4
4
  class Article::CategoriesController < ApplicationController
5
5
 
6
6
  # Security & Action Filters
7
- before_action :authenticate_admin!
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 :authenticate_admin!
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: current_ability.org_id)
13
+ @article_posts = Article::Post.where(org_id: current_user.org_id)
14
14
  end
15
15
 
16
16
  # Article Show
@@ -1,3 +1,3 @@
1
1
  module Phcpresspro
2
- VERSION = "77.0.0"
2
+ VERSION = "78.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpresspro
3
3
  version: !ruby/object:Gem::Version
4
- version: 77.0.0
4
+ version: 78.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts