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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98a1f0c7ac1218dd6e4816bb05b25aac8d050101
|
4
|
+
data.tar.gz: ee539e9efa44ea89072a227729bcb3c65d583cc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?
|