caboose-rets 0.1.190 → 0.1.194
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 717549d5caee57e9d595416f881f671f6d825974d668c42124ec090e076dcf8f
|
4
|
+
data.tar.gz: 78580df8a826fea84e4ee8a8e5c6675a4498200512e789c45067bb27f5f438b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86c3239a35da2a4cccd1ba91980c327c94c7b74487f69ac658b7111f8eb144e7247f1ea8c4c0c50c89e8f92ceb53932411004b1982d0a21b8ff1102983d15e64
|
7
|
+
data.tar.gz: 01f6fb7047bfa2924009c32d303303cce4dba1d15d389b2470d02dc82abadd60f3685a28cb3cc24dbf45a4ff8e9520f3a875c4ad164dc2efb32ef933c6d3e5f1
|
@@ -454,7 +454,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
|
|
454
454
|
ids_to_remove = local_ids - ids
|
455
455
|
self.log3(class_type,nil,"Found #{ids_to_remove.count} #{class_type} records in the local database that are not in the remote database.")
|
456
456
|
|
457
|
-
# Delete all RetsMedia and CabooseMedia for the deleted property listings (except keep the first image)
|
457
|
+
# Delete all RetsMedia and CabooseMedia for the deleted property listings (except keep the first image)
|
458
458
|
if class_type == 'Property' && ids_to_remove && ids_to_remove.count > 0
|
459
459
|
self.log3(class_type,nil,"Deleting Media objects that shouldn't be there...")
|
460
460
|
muis = CabooseRets::Property.where("#{k} in (?)", ids_to_remove).pluck(:matrix_unique_id)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CabooseRets::RetsPlugin < Caboose::CaboosePlugin
|
2
2
|
|
3
|
-
def self.admin_nav(nav, user = nil, page = nil, site)
|
3
|
+
def self.admin_nav(nav, user = nil, page = nil, site, is_superadmin)
|
4
4
|
return nav if user.nil?
|
5
5
|
return nav if !site.use_rets
|
6
6
|
return nav if !user.is_allowed('rets_properties', 'view')
|
@@ -11,13 +11,13 @@ class CabooseRets::RetsPlugin < Caboose::CaboosePlugin
|
|
11
11
|
'children' => [],
|
12
12
|
'modal' => true
|
13
13
|
}
|
14
|
-
item['children'] << { 'id' => 'agents', 'icon' => 'users', 'href' => '/admin/agents' , 'text' => 'Agents' , 'modal' => false } if user.is_allowed('rets_agents','view')
|
14
|
+
item['children'] << { 'id' => 'agents', 'icon' => 'users', 'href' => '/admin/agents' , 'text' => 'Agents' , 'modal' => false } if user.is_allowed('rets_agents','view', is_superadmin)
|
15
15
|
# item['children'] << { 'id' => 'offices' , 'href' => '/admin/offices' , 'text' => 'Offices' , 'modal' => false }
|
16
|
-
item['children'] << { 'id' => 'open-houses', 'icon' => 'calendars', 'href' => '/admin/open-houses' , 'text' => 'Open Houses' , 'modal' => false } if user.is_allowed('rets_open_houses','view')
|
17
|
-
item['children'] << { 'id' => 'properties' , 'icon' => 'rets', 'href' => '/admin/properties' , 'text' => 'Properties' , 'modal' => false } if user.is_allowed('rets_properties','view')
|
16
|
+
item['children'] << { 'id' => 'open-houses', 'icon' => 'calendars', 'href' => '/admin/open-houses' , 'text' => 'Open Houses' , 'modal' => false } if user.is_allowed('rets_open_houses','view',is_superadmin)
|
17
|
+
item['children'] << { 'id' => 'properties' , 'icon' => 'rets', 'href' => '/admin/properties' , 'text' => 'Properties' , 'modal' => false } if user.is_allowed('rets_properties','view',is_superadmin)
|
18
18
|
# item['children'] << { 'id' => 'commercial' , 'href' => '/admin/commercial' , 'text' => 'Commercial Property' , 'modal' => false }
|
19
19
|
# item['children'] << { 'id' => 'commercial' , 'href' => '/admin/multi-family' , 'text' => 'Multi-Family Property' , 'modal' => false }
|
20
|
-
# item['children'] << { 'id' => 'land'
|
20
|
+
# item['children'] << { 'id' => 'land' , 'href' => '/admin/land' , 'text' => 'Land Property' , 'modal' => false }
|
21
21
|
# item['children'] << { 'id' => 'saved-properties' , 'href' => '/saved-properties' , 'text' => 'Saved Properties' , 'modal' => false }
|
22
22
|
item['children'] << { 'id' => 'user-report' , 'icon' => 'users', 'href' => '/admin/mls/user-report' , 'text' => 'User Report' , 'modal' => false }
|
23
23
|
nav << item
|
data/lib/caboose_rets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-rets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.194
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caboose-cms
|