effective_posts 2.9.0 → 2.9.2

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: '08c77c59d3451a65aacd650d5f506439340882d31a663b717840e407e96d95a0'
4
+ data.tar.gz: a532d12cb6cc88e340d15eed060cc7b9c73f2545d143eccf21fc9447b1c97636
5
5
  SHA512:
6
- metadata.gz: 237e17a90d360ee82c0d75e2d3ad2e1e3e8afe1f558e59307d6c844e20cc8d3532bfee6ff4fde9a8a2e5a6cab9fbfdd4534af629b9e4917d4f034029547527f9
7
- data.tar.gz: 7b19966b9da0e7a1f6182678181f1fc8f70814500ce7adcf94dfcf7cd6103dfe2579d40e9280b7d22d0404a746725db98c7bc9df8297f33aa43f3aa8b343d55b
6
+ metadata.gz: ae9240ee6cf63ffa272d376a87dd1f7c38ad8b578cf60e2cf588145526389b4276f2d2159655c21ed1ef8947246b69e4f9d73b875bc8e1439e334ea1f1a991b4
7
+ data.tar.gz: 5b91f2d6ad69728a327e5946db2a9a8db4dd42e1d7cf0777e7b2c219a1da0c29b30183a8cd34ae1c1f163bcdefc6b2a16463fe26effb7b87fce53c3fde167648
@@ -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,9 +1,4 @@
1
1
  class EffectivePostsDatatable < Effective::Datatable
2
- bulk_actions do
3
- bulk_action('Archive selected', effective_posts.bulk_archive_admin_posts_path)
4
- bulk_action('Unarchive selected', effective_posts.bulk_unarchive_admin_posts_path)
5
- end
6
-
7
2
  filters do
8
3
  scope :unarchived, label: 'All'
9
4
  scope :published
@@ -16,8 +11,6 @@ class EffectivePostsDatatable < Effective::Datatable
16
11
  datatable do
17
12
  order :published_start_at, :desc
18
13
 
19
- bulk_actions_col
20
-
21
14
  col :id, visible: false
22
15
 
23
16
  col :title
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '2.9.0'.freeze
2
+ VERSION = '2.9.2'.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.9.0
4
+ version: 2.9.2
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-12-09 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails