effective_posts 2.7.2 → 2.7.3

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: 7535e6aaa66d07e7184ca26b3d747f2d5991f43ed8a1f69a2d3c43252262d845
4
- data.tar.gz: a12c21200c2c4c1ce0cc1405effb3041b744eb95f4b5fbd6ad94bf0ad3cef4b5
3
+ metadata.gz: fb524b7de78941ff7ddc02bd3fed11f561ac7dc8bda6a0f46d093fc84c86de4a
4
+ data.tar.gz: b59781526ef9fef657ffd9eff3cf8e732896e0279cad97fede886b8e769da93f
5
5
  SHA512:
6
- metadata.gz: d3bc4dc919c8534c7e58db16e468ae8a73d7aec620e05821e443b190768643752cad76bd2eab3826e44e74a5d809b966104574c29c88dbeefd9da70400f8773d
7
- data.tar.gz: 1a213e13af145cbc11344c9cc354381d2db2813eb4b64c10424e1330c144c252f4cba6303e3e030152e237d4bc9edc548a3be61e5f90af03ab8412244dd1d1da
6
+ metadata.gz: 3413d26186e3df2707e43545a76f172e53fa063154f089fbca5699fbe7eebaa8e6f2f6136b1fccd160d8f525e0114e5ff77d7860ea86853411ef2d1ff6ac71e8
7
+ data.tar.gz: 990ecea8f2107abdcb4ea7090109c7b74dfc627ef5700fe3c72c26b94d359ba8e000ea3517d7197d09c5cde68779d6906a4e9eccb4da92d30e4bbe3af9004340
@@ -91,6 +91,8 @@ module Effective
91
91
  if defined?(EffectiveRoles) && EffectivePosts.use_effective_roles
92
92
  if user.present? && user.respond_to?(:roles)
93
93
  scope = scope.for_role(user.roles)
94
+ else
95
+ scope = scope.for_role([])
94
96
  end
95
97
  end
96
98
 
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '2.7.2'.freeze
2
+ VERSION = '2.7.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_posts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.2
4
+ version: 2.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails