imagine_cms 3.0.12 → 3.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -674,6 +674,7 @@ class Management::CmsController < Management::ApplicationController # :nodoc:
674
674
  def crop_image
675
675
  @pg = CmsPage.find_by_id(params[:id])
676
676
  localfile = File.join(Rails.root, 'public', 'assets', 'content', @pg.path, File.basename(params[:filename]))
677
+ File.chmod(0644, localfile)
677
678
 
678
679
  # get out now if user clicked finish
679
680
  if params[:next_clicked].to_i != 1
@@ -741,6 +742,8 @@ class Management::CmsController < Management::ApplicationController # :nodoc:
741
742
  end
742
743
 
743
744
  orig_im.write(localfile) if dirty
745
+ File.chmod(0644, localfile)
746
+
744
747
  @image_file = localfile + "?#{File.mtime(localfile).to_i}"
745
748
  File.unlink testfile
746
749
  upload_to_s3(localfile, @pg)
@@ -1208,6 +1211,7 @@ class Management::CmsController < Management::ApplicationController # :nodoc:
1208
1211
  def crop_thumb
1209
1212
  @pg = CmsPage.find_by_id(params[:id])
1210
1213
  localfile = File.join(Rails.root, 'public', 'assets', 'content', @pg.path, File.basename(params[:filename]))
1214
+ File.chmod(0644, localfile)
1211
1215
 
1212
1216
  # get out now if user clicked finish
1213
1217
  if params[:next_clicked].to_i != 1
@@ -1291,6 +1295,7 @@ class Management::CmsController < Management::ApplicationController # :nodoc:
1291
1295
  def crop_feature_image
1292
1296
  @pg = CmsPage.find_by_id(params[:id])
1293
1297
  localfile = File.join(Rails.root, 'public', 'assets', 'content', @pg.path, File.basename(params[:filename]))
1298
+ File.chmod(0644, localfile)
1294
1299
 
1295
1300
  # get out now if user clicked finish
1296
1301
  if params[:next_clicked].to_i != 1
@@ -1,3 +1,3 @@
1
1
  module ImagineCms
2
- VERSION = "3.0.12"
2
+ VERSION = "3.0.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagine_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.12
4
+ version: 3.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-08 00:00:00.000000000 Z
12
+ date: 2013-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails