effective_posts 2.9.0 → 2.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/effective/posts_controller.rb +0 -4
- 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: a29091df2b68f6d2065f71323bedfa44a7ebbdbdb705d7507052ece8a14d34a2
|
4
|
+
data.tar.gz: 7f6bda8cadbac3e311af2609195579aa555ceb4065bb315b8b85ead190221891
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2e3f9f4ad9c9ffe648a0ceefb73061a3279e22418f75cff587c9cc117ca7cc7988252c2c37d17cd103b1dfd1e37400f1bcd48988eb7be5f67fd20b412dad0c1
|
7
|
+
data.tar.gz: 730ad8f5cc4ca55d7c2eda8d647b964687acebfcd24184e2522e7db1b417cdfa26a9374c63e4bda49508acc83a917441deb77a2f766c2c914b8fa71fc13386e6
|
@@ -47,10 +47,6 @@ module Effective
|
|
47
47
|
@posts ||= Effective::Post.posts(user: current_user, unpublished: admin, archived: admin)
|
48
48
|
@post = @posts.find(params[:id])
|
49
49
|
|
50
|
-
if @post.respond_to?(:roles_permit?)
|
51
|
-
raise Effective::AccessDenied.new('Access Denied', :show, @post) unless @post.roles_permit?(current_user)
|
52
|
-
end
|
53
|
-
|
54
50
|
EffectiveResources.authorize!(self, :show, @post)
|
55
51
|
|
56
52
|
if admin
|