caboose-cms 0.8.81 → 0.8.82
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/caboose/block_types_controller.rb +2 -2
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 278b89dc2914a87d824a0182516b1744d65d29d4
|
4
|
+
data.tar.gz: 31143b7100a96faea14a6daa3b3d52e8426d62ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d62a265b791ee72dbd24cface719a676dde1ced7911588d26accdf67e7860ab3ec359e92104598a6e962f0a12454ff8f618c30210ff1db3f9eb4c5024ee3883
|
7
|
+
data.tar.gz: 70c038605e40fa3c87b24d4c02541c133d91edcd27f851d1c0589fb2e5ecb3bcc0c83c21f3d06edd8ba1a08cfdba568400027df71293961d7456e2f197ee449a
|
@@ -50,13 +50,13 @@ module Caboose
|
|
50
50
|
|
51
51
|
# @route GET /admin/block-types/parse
|
52
52
|
def admin_parse_form
|
53
|
-
|
53
|
+
return if !user_is_allowed('blocktypeparser', 'view')
|
54
54
|
render :layout => 'caboose/admin'
|
55
55
|
end
|
56
56
|
|
57
57
|
# @route POST /admin/block-types/parse-tags
|
58
58
|
def admin_parse_tags
|
59
|
-
|
59
|
+
return if !user_is_allowed('blocktypeparser', 'view')
|
60
60
|
children = params[:children] && params[:children] != 'false' ? params[:children] : nil
|
61
61
|
resp = BlockTypeParser.parse_html(params[:html], params[:tags], children)
|
62
62
|
render :json => resp
|
data/lib/caboose/version.rb
CHANGED