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 +4 -4
- data/app/models/caboose_rets/rets_plugin.rb +3 -3
- data/lib/caboose_rets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e7b1a97da295b0b006b3431b403ee6e418c6fd3
|
4
|
+
data.tar.gz: 71ca019ecb75032b94ad134b6e5fbb840b64230d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('
|
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 }
|
data/lib/caboose_rets/version.rb
CHANGED