caboose-rets 0.1.45 → 0.1.46

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: 32c411307e99472871360ef337f4ec58d2c6a83e
4
- data.tar.gz: 8ab21a549b483a63e5b709c36c5205b8d9477356
3
+ metadata.gz: 1e7b1a97da295b0b006b3431b403ee6e418c6fd3
4
+ data.tar.gz: 71ca019ecb75032b94ad134b6e5fbb840b64230d
5
5
  SHA512:
6
- metadata.gz: b31742763816ec22ef2526320cc801c6b5b35efe6bc5f4abed708318ff7f8248d3d4803e8b61b8233acb95ae9b5de87f9c0f9e0f041e7fce31f55e2f444db3ed
7
- data.tar.gz: af1891ddcb7ed49132974540ef5ab12580792dc70d0e2a7d5be9144d68be9aa3bd1a4fd5bd6515bd87a1821acc8dac65d653885ce5ecae5954fc2dd7018ef595
6
+ metadata.gz: 46edac34772c09622deb9d35cb2f2b20c466a364a496fecf317be51f60d974b3c37102e9ebd2cb0db4ad0e0b23499bab31f534922a68c99cd49aa697fded39d2
7
+ data.tar.gz: 2c8bf4857bd30933281f2be8dac5fbbbc3065997908431507704b0014f3598446a27f38c5c1f6a79aaef32cd440659963805bdfe7132c60068c38a4898c04289
@@ -3,7 +3,7 @@ class CabooseRets::RetsPlugin < Caboose::CaboosePlugin
3
3
  def self.admin_nav(nav, user = nil, page = nil, site)
4
4
  return nav if user.nil?
5
5
  return nav if !site.use_rets
6
- return nav if !user.is_allowed('properties', 'view')
6
+ return nav if !user.is_allowed('rets_properties', 'view')
7
7
 
8
8
  item = {
9
9
  'id' => 'rets',
@@ -11,10 +11,10 @@ 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 }
14
+ item['children'] << { 'id' => 'agents', 'icon' => 'users', 'href' => '/admin/agents' , 'text' => 'Agents' , 'modal' => false } if user.is_allowed('rets_agents','view')
15
15
  # item['children'] << { 'id' => 'offices' , 'href' => '/admin/offices' , 'text' => 'Offices' , 'modal' => false }
16
16
  # item['children'] << { 'id' => 'open-houses' , 'href' => '/admin/open-houses' , 'text' => 'Open Houses' , 'modal' => false }
17
- item['children'] << { 'id' => 'properties' , 'icon' => 'rets', 'href' => '/admin/properties' , 'text' => 'Properties' , 'modal' => false }
17
+ item['children'] << { 'id' => 'properties' , 'icon' => 'rets', 'href' => '/admin/properties' , 'text' => 'Properties' , 'modal' => false } if user.is_allowed('rets_properties','view')
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
20
  # item['children'] << { 'id' => 'land' , 'href' => '/admin/land' , 'text' => 'Land Property' , 'modal' => false }
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.45'
2
+ VERSION = '0.1.46'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.45
4
+ version: 0.1.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry