caboose-cms 0.8.21 → 0.8.22
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: 9b23c91e422882aa7a2522728cece022664c14eb
|
4
|
+
data.tar.gz: 473227f99ed02278a43085af70c56d649313b2aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef89e51edc32c7c82a85fa53c5f9125a85dadbb788a297016931c77d2741f8acf5da46f787bc8fcad47472aca3b633577e9f7c096b366b351d28c74c7401a70
|
7
|
+
data.tar.gz: 31da9f3576d404741db9b19c0d7f43abdc439c4f645a1dacd293667125e362217fc52d9e9688ce1e4e9773cfd8ab134d085f2c2d2a8dd326a829dd2f235d70d9
|
@@ -205,7 +205,7 @@ module Caboose
|
|
205
205
|
# @route GET /admin/sites/options
|
206
206
|
def options
|
207
207
|
return if !user_is_allowed('sites', 'view')
|
208
|
-
render :json => { :error => "You are not allowed to manage sites." } and return if
|
208
|
+
render :json => { :error => "You are not allowed to manage sites." } and return if !logged_in_user.is_super_admin?
|
209
209
|
|
210
210
|
options = Site.reorder('name').all.collect { |s| { 'value' => s.id, 'text' => s.name }}
|
211
211
|
render :json => options
|
data/app/models/caboose/media.rb
CHANGED
@@ -27,7 +27,13 @@ class Caboose::Media < ActiveRecord::Base
|
|
27
27
|
:sort_order,
|
28
28
|
:processed,
|
29
29
|
:image_content_type,
|
30
|
-
:file_content_type
|
30
|
+
:file_content_type,
|
31
|
+
:image_file_name,
|
32
|
+
:image_file_size,
|
33
|
+
:image_updated_at,
|
34
|
+
:file_file_name,
|
35
|
+
:file_file_size,
|
36
|
+
:file_updated_at
|
31
37
|
|
32
38
|
has_attached_file :sample
|
33
39
|
|
data/lib/caboose/version.rb
CHANGED