effective_regions 1.6.1 → 1.6.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
  SHA1:
3
- metadata.gz: 5b6d66be462d576f41140f11e056d18a5c1a007e
4
- data.tar.gz: 3173674c8852923816b50381eeb39d386ae645c2
3
+ metadata.gz: 98a1f0c7ac1218dd6e4816bb05b25aac8d050101
4
+ data.tar.gz: ee539e9efa44ea89072a227729bcb3c65d583cc0
5
5
  SHA512:
6
- metadata.gz: 158ebb93a1187be93d122d3ebe1dedf66e2cbd2250e3db1eeaf5f693faeb20ba09bda80a13c5cc38594a5d73c2ae3ab7c4abcaa7642f42a875cf099a7ce792e2
7
- data.tar.gz: 808b42036e976bc95a107dddf9e105b7a3a6c1ae6b342fec2c2147c770758134396291eeb18767f4f40c9a7c256631b20347543325f784b64ed0eb43e06da9cd
6
+ metadata.gz: d60610b9f140cae6674f15e094bd69ff2cf6015f3e47d1c02ff77d440b53b284d3991f49cf923573add41b61c80d76f25dc8749cdc935db7e8affd7dcd44cc73
7
+ data.tar.gz: 1f85e586d9c43f799ab6299c06fdc6118d76d27ab8dd213193fff180a1f0a6726533fdb470133af97b9df2c1c4867ecee4a4a41c436f9eaca0e0d3a41a31654d
@@ -71,6 +71,8 @@ module Effective
71
71
  end
72
72
 
73
73
  def snippet # This is a GET. CKEDITOR passes us data, we need to render the non-editable content
74
+ EffectiveRegions.authorized?(self, :edit, Effective::Region.new())
75
+
74
76
  klass = "Effective::Snippets::#{region_params[:name].try(:classify)}".safe_constantize
75
77
 
76
78
  if klass.present?
@@ -1,3 +1,3 @@
1
1
  module EffectiveRegions
2
- VERSION = '1.6.1'.freeze
2
+ VERSION = '1.6.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_regions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect