effective_posts 2.7.3 → 2.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/post.rb +1 -5
- data/lib/effective_posts/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2de1e57d74d589f50d3515a2853108e482735e77040253b68d011a594ad14782
|
4
|
+
data.tar.gz: 53cca2477debcdfa215d8e4b50a6eb394142cec9bd4c16075dd843c1e2fe8367
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 960b0c9fdcf9a28bf9975fae28470c676b430a66ca5d980d4b57cfcd91e8f56c8b3a07f0b2e19bb0a03c3d5ad1e1d07cfe27da4bf41acade69d0c01271ca8634
|
7
|
+
data.tar.gz: 102cad6a101b4b5fef4f98770a2eba5b15d8dd53b8a6b3d79e277066c9d1b88a55ca8bb89c60fb949e4576ba22ff7c7f3564d8eac5c2425dffc041d592a7d580
|
@@ -89,11 +89,7 @@ module Effective
|
|
89
89
|
scope = all.deep.order(arel_table[:published_start_at].desc.nulls_last)
|
90
90
|
|
91
91
|
if defined?(EffectiveRoles) && EffectivePosts.use_effective_roles
|
92
|
-
|
93
|
-
scope = scope.for_role(user.roles)
|
94
|
-
else
|
95
|
-
scope = scope.for_role([])
|
96
|
-
end
|
92
|
+
scope = scope.for_role(user&.roles)
|
97
93
|
end
|
98
94
|
|
99
95
|
if category.present?
|