caboose-rets 0.1.191 → 0.1.192

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: a2fc7fbb6f605500f900eb5625e09397dfe0f64eef3ccef6ad71724f2f828b02
4
- data.tar.gz: f5c15dbb38706eafa7b16b41bb5446ba74bc591d5c29ab8a4f59a3730d861681
3
+ metadata.gz: bc2ec5dc5eb53231ac2e68313a01f68253d8912893a0aa8c29c4e2885001113b
4
+ data.tar.gz: 9b5a14bcd98c6518f036dde59d159f364e51966077a80e7697471dddea77b112
5
5
  SHA512:
6
- metadata.gz: 81166c1c9d6d5f749f097a154a314e8356ca22a6fcbbea7c9cdf4a4fb783bd616d2dfea38704fa577addef1d8e722dd21156a8cceac2ab2237a446f248e773bf
7
- data.tar.gz: 321d54398c54ca8a356208108a9eab3f08a2e6351544e0cee22d119b6074e748b0063cc626e9b8fac5544881dcf538b05448e1929f6ef3d52a57538032df350d
6
+ metadata.gz: b81c17cea7ebd2d5be1049327fd9495d3c19712df9cf92c6a44f8d8a5c4e6f11aeec34715d7dd5e34bd14d550b0ee7daa5e796d934fc20170a09fe5b7e646bce
7
+ data.tar.gz: 6831b3e5c8bc6599ac89b6591b175fd650935b7524ccd32874d9e60c175bade2b433f5130cd61bcf58c350935f32481b914382e579d633153ffeec03c8ac80df
@@ -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,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 } 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
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.191'
2
+ VERSION = '0.1.192'
3
3
  end
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.191
4
+ version: 0.1.192
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-01-03 00:00:00.000000000 Z
11
+ date: 2022-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms