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 +4 -4
- data/app/models/caboose_rets/rets_plugin.rb +4 -4
- data/lib/caboose_rets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc2ec5dc5eb53231ac2e68313a01f68253d8912893a0aa8c29c4e2885001113b
|
4
|
+
data.tar.gz: 9b5a14bcd98c6518f036dde59d159f364e51966077a80e7697471dddea77b112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 }
|
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.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-
|
11
|
+
date: 2022-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caboose-cms
|