pulitzer 0.15.6 → 0.15.7

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
  SHA1:
3
- metadata.gz: b582418ef40475700755fdefb0fdd07618501f30
4
- data.tar.gz: 0627f3b171f3933f74ea37bc46f61724a9bb3df1
3
+ metadata.gz: e2431c03fd45ceed16e863d54120c661552ba07f
4
+ data.tar.gz: e0e184834648aefc1ea5541aeb02d0c647d6395c
5
5
  SHA512:
6
- metadata.gz: 64b62fb7fe3d4d2c2c0282fadef2a6aadadcd9ac2742d22553aae1b033681328101c8cf08222de70f465656aa63e297a9f196c0c2fb2e9f590a98605f40470a6
7
- data.tar.gz: 61cb8669129318f91dfbff5ee1535a3678f891a34cb7a6b0d9ae495c832b98578645b29b6e52b385d5bd4c161347de98224c41e98d9e29941d5515cad36f4807
6
+ metadata.gz: 39c9772632001602ce318181c77ed0d3c80d7acdfe6e49d357e32d3c1379898ec8df523373818edf776106a717dfc3768f255c404add72015bb563acfb4516d0
7
+ data.tar.gz: 707d835138148f833b53a3bd209950bdaf4f33117667f380dcb5c497a7316b0f58041df0ce730fe82b007a0dd2ee0fde68f5e0843d5ac8f6ef09180f158eb1a7
@@ -8,7 +8,11 @@ class Pulitzer::PostTypesController < Pulitzer::ApplicationController
8
8
  @post_type_kind = 'template'
9
9
  end
10
10
  if request.xhr?
11
- @post_types = Pulitzer::PostType.send(@post_type_kind).order(name: :asc)
11
+ if Pulitzer.skip_metadata_auth? || self.instance_eval(&Pulitzer.metadata_closure)
12
+ @post_types = Pulitzer::PostType.send(@post_type_kind).order(name: :asc)
13
+ else
14
+ @post_types = Pulitzer::PostType.send(@post_type_kind).joins(:post_type_versions).where(pulitzer_post_type_versions: {status: 'published'}).distinct.order(name: :asc)
15
+ end
12
16
  render_ajax
13
17
  end
14
18
  end
@@ -1,3 +1,3 @@
1
1
  module Pulitzer
2
- VERSION = '0.15.6'
2
+ VERSION = '0.15.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulitzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.6
4
+ version: 0.15.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-20 00:00:00.000000000 Z
12
+ date: 2017-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails