caboose-cms 0.5.142 → 0.5.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjhkYWRkNDJiYjlhYTgxNzU1NWQwZTU1ZDNmNzM0NWJkOGM3NzVlYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTNmZWM1YjEzNmU2ZGNhMmYwMTI0MGQzZmYxZjAyOTdhYTc0ZGEwYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTExNjdkZTA0YmIwNTc0ZDk2NjU3NGU2NmU1M2RkOGMwYjE1NTBhYjM4NjVi
|
10
|
+
NzZiNTNkYmUxZDdiNzVkMzc0MTI1M2ZkMTlmYTRmZWM4Y2ZjZDZkNDk0N2Vk
|
11
|
+
YzY3NDVhZjUyYjI1ZGE0MzFhMWZkYjQ5ZmMyOWM1ZTVjYTY4NDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjUxODYzNzk2MTc5MjZhMjg1OTRkNTM0NThkMjY5YjJiZDEzNWJlMTBjZDhj
|
14
|
+
Zjk4ODY2MzNkOTFjNTg0YTRkNDdjZjEwZjUyZTNkMmUyZDUxMjgyMTE5NDkx
|
15
|
+
ZDBmYzQwNjg2OTRmNWRhNTc2ZDdjMzFmNWI1YjM4MmM2NmY3ZGM=
|
@@ -119,8 +119,8 @@ module Caboose
|
|
119
119
|
def admin_product_stubs
|
120
120
|
title = params[:title].strip.downcase.split(' ')
|
121
121
|
render :json => [] and return if title.length == 0
|
122
|
-
where = []
|
123
|
-
query = [
|
122
|
+
where = ["site_id = ?"]
|
123
|
+
query = [@site.id]
|
124
124
|
title.each do |str|
|
125
125
|
where << 'lower(title) like ?'
|
126
126
|
query << "%#{str}%"
|
@@ -254,7 +254,7 @@ module Caboose
|
|
254
254
|
# GET /admin/users/options
|
255
255
|
def options
|
256
256
|
return if !user_is_allowed('users', 'view')
|
257
|
-
@users = User.where(
|
257
|
+
@users = User.where(:site_id => @site.id).reorder('last_name, first_name').all
|
258
258
|
options = @users.collect { |u| { 'value' => u.id, 'text' => "#{u.first_name} #{u.last_name} (#{u.email})"}}
|
259
259
|
render json: options
|
260
260
|
end
|
data/lib/caboose/version.rb
CHANGED