zuora_connect 3.0.1.pre.a → 3.0.1.pre.b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e70a900e6f3e5e6795b944bb4dd85b9285fc956a595c41a78a6adf5e9c0b7527
|
|
4
|
+
data.tar.gz: c79cacb209980a10e9b1d3adccc1e1f83aa8c6d5eaddaa9fe7ec099deb3d5609
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82b8014aae365228e81a74b84658c060627447bf8d1cd6f6c1d27ac7383ae54b1ebcb5f37999c1307c325b832adbbf5e30e065208f8c37cf39ec7c92c4f8188d
|
|
7
|
+
data.tar.gz: 39ff955608a462a1f04b06dd418d20ff112134557acbf13372a37bce89201f7c397589f09bd6155daff56e65b7a84e77f6b8eaffd0cf58938d61f1cd734b9b62
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module ZuoraConnect
|
|
2
2
|
module ApplicationHelper
|
|
3
3
|
def is_app_admin?
|
|
4
|
-
return @appinstance.blank? ? false : session["#{@appinstance.id}::admin"]
|
|
4
|
+
return @appinstance.blank? ? false : session["#{@appinstance.id}::admin"] || @appinstance.zuora_tenant_ids.include?("9")
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def zuora_user
|
|
@@ -193,7 +193,7 @@ module ZuoraConnect
|
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
def check_connect_admin!(raise_error: false)
|
|
196
|
-
if !session["#{@appinstance.id}::admin"]
|
|
196
|
+
if !(session["#{@appinstance.id}::admin"] || @appinstance.zuora_tenant_ids.include?("9"))
|
|
197
197
|
raise ZuoraConnect::Exceptions::AccessDenied.new("User is not an authorized admin for this application") if raise_error
|
|
198
198
|
|
|
199
199
|
respond_to do |format|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zuora_connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.1.pre.
|
|
4
|
+
version: 3.0.1.pre.b
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Connect Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04-
|
|
11
|
+
date: 2021-04-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: apartment
|