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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18b1cb77e5c1dee2b2a438b1ad4a71f1a79caa1f5340d351b3355e0e92909c4b
4
- data.tar.gz: 5d37e599214a4346eaa6a43491109496dbff7ace48bc8a706d2ad801b1cea3e9
3
+ metadata.gz: a29091df2b68f6d2065f71323bedfa44a7ebbdbdb705d7507052ece8a14d34a2
4
+ data.tar.gz: 7f6bda8cadbac3e311af2609195579aa555ceb4065bb315b8b85ead190221891
5
5
  SHA512:
6
- metadata.gz: 237e17a90d360ee82c0d75e2d3ad2e1e3e8afe1f558e59307d6c844e20cc8d3532bfee6ff4fde9a8a2e5a6cab9fbfdd4534af629b9e4917d4f034029547527f9
7
- data.tar.gz: 7b19966b9da0e7a1f6182678181f1fc8f70814500ce7adcf94dfcf7cd6103dfe2579d40e9280b7d22d0404a746725db98c7bc9df8297f33aa43f3aa8b343d55b
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
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '2.9.0'.freeze
2
+ VERSION = '2.9.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_posts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect