caboose-cms 0.9.137 → 0.9.138

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: 3cbefac74a3129d8da10bd3c9e6a7b7b42744292
4
- data.tar.gz: f899356389647067fbab2e3920c6ddf7f16476a4
3
+ metadata.gz: 2210b753a82c6e41b19c51b38ba9a32b8de33ee3
4
+ data.tar.gz: 800186525ae9abae5f3d057dbba73b0ad7e701bb
5
5
  SHA512:
6
- metadata.gz: 7ab3bb6a373b4a87a032c524f4b5bb0a20b02d46789c12ab37ef96f7073548874c723aedc6a9209ca0a9449ee3b1420c23890bc7c3d3f2e7c18ef49b96e87b8f
7
- data.tar.gz: 77cd58c747d7ef0e03a711e733d5cbefeb493c2257206df440ae0f22161f646ac6ce8065c93540d459242c921e33d8e0afa4389c22cb972e5990b62b672e7c88
6
+ metadata.gz: 0dfbc83db912192e67c4044168772a84c6fe8dafbceda8f543da3ddd39e3950084f5bad76a975d41237f0ba4591f6f0ce26cebcb8e77df95be86785e377ef996
7
+ data.tar.gz: 0b8fb8d10f4a4a39b16dcf711aa3a490a200ad5a328d104b0cbf617f495c669d96547749807dcff41ab1c25d3e5fe417b96f0213954308d5cf0fc9155b68034a
@@ -229,13 +229,14 @@ module Caboose
229
229
  # @route GET /admin/pages/:id/preview
230
230
  def admin_preview
231
231
  @page = Page.find(params[:id])
232
- redirect_to "/login?return_url=/admin/pages/#{@page.id}/preview" and return if @logged_in_user.nil?
233
- condition = @logged_in_user && (@logged_in_user.is_super_admin? || (@logged_in_user.site_id == @page.site_id && ( @logged_in_user.is_allowed('all','all') || @logged_in_user.is_allowed('pages','edit') && Page.permissible_actions(@logged_in_user, @page.id).include?('edit'))))
232
+ # redirect_to "/login?return_url=/admin/pages/#{@page.id}/preview" and return if @logged_in_user.nil?
233
+ # condition = @logged_in_user && (@logged_in_user.is_super_admin? || (@logged_in_user.site_id == @page.site_id && ( @logged_in_user.is_allowed('all','all') || @logged_in_user.is_allowed('pages','edit') && Page.permissible_actions(@logged_in_user, @page.id).include?('edit'))))
234
+ condition = @page.site_id == @site.id
234
235
  redirect_to "/admin/pages" and return unless condition
235
- if @page.block.nil?
236
- redirect_to "/admin/pages/#{@page.id}/layout"
237
- return
238
- end
236
+ # if @page.block.nil?
237
+ # redirect_to "/admin/pages/#{@page.id}/layout"
238
+ # return
239
+ # end
239
240
  @editing = true
240
241
  @preview = true
241
242
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.137'
2
+ VERSION = '0.9.138'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.137
4
+ version: 0.9.138
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
@@ -1252,7 +1252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1252
1252
  version: '0'
1253
1253
  requirements: []
1254
1254
  rubyforge_project:
1255
- rubygems_version: 2.2.0
1255
+ rubygems_version: 2.5.1
1256
1256
  signing_key:
1257
1257
  specification_version: 4
1258
1258
  summary: CMS built on rails.