caboose-cms 0.5.142 → 0.5.143

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzExN2FjYzAwODdmYjQ2ZDM5NmM4ODg1YjllYjM5ZDRjYzRhMmM3NQ==
4
+ YjhkYWRkNDJiYjlhYTgxNzU1NWQwZTU1ZDNmNzM0NWJkOGM3NzVlYQ==
5
5
  data.tar.gz: !binary |-
6
- ZDc3NDc3YzEyM2VjY2UxNjk0NjdhZTRjNjIyZWI3ZDVlZDlmNWFiZA==
6
+ YTNmZWM1YjEzNmU2ZGNhMmYwMTI0MGQzZmYxZjAyOTdhYTc0ZGEwYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGRlYWNiZGY0NjVjZjMzZGMxNjIxNWY5MjJkMjBmNTM3NzE2NzFmYTU4NTU5
10
- YWQ5ZWQ2NjcwMjA4OGVhZWI3YjYzYzgxMmRkM2YyNjJkMTBkN2FiZDczZGNj
11
- NzFmMDQ1ZTAxYjdmNWQxZTMzNzk4YTJlMzVmZjIyZmI5Mjk1ZWI=
9
+ NTExNjdkZTA0YmIwNTc0ZDk2NjU3NGU2NmU1M2RkOGMwYjE1NTBhYjM4NjVi
10
+ NzZiNTNkYmUxZDdiNzVkMzc0MTI1M2ZkMTlmYTRmZWM4Y2ZjZDZkNDk0N2Vk
11
+ YzY3NDVhZjUyYjI1ZGE0MzFhMWZkYjQ5ZmMyOWM1ZTVjYTY4NDY=
12
12
  data.tar.gz: !binary |-
13
- ZjQ3YmI0MmVkZmFjMGRjYTlkMGM0ZjI3MzgyYjcxMjg2ZjMyZTE2MzBmN2Zk
14
- YWJjMzBmNzk2OWExMGVhZTRiMDE4NzEyY2IwYjM2N2ViMDQ2OGVjY2I3MDdh
15
- YTYwZTQ4MjYyMWMxMTZiZWM2YTE1Nzg2NzA4NmFhMGZhYmRkNTk=
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}%"
@@ -43,6 +43,7 @@ module Caboose
43
43
  def admin_add
44
44
  return if !user_is_allowed('orders', 'add')
45
45
  order = Order.create(
46
+ :site_id => @site.id,
46
47
  :status => Order::STATUS_PENDING,
47
48
  :financial_status => Order::FINANCIAL_STATUS_PENDING
48
49
  )
@@ -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('id <> 2').reorder('last_name, first_name').all
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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.142'
2
+ VERSION = '0.5.143'
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.5.142
4
+ version: 0.5.143
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry