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: 93697b2f6ee9ddb200d9aafcf700e2305740617bbc0a8b216dc32b9fd33a3f2e
4
- data.tar.gz: b88d5be07b1122372eb79b9aa74662f06ba3f522a64ba0177f62842db1fe29cc
3
+ metadata.gz: e70a900e6f3e5e6795b944bb4dd85b9285fc956a595c41a78a6adf5e9c0b7527
4
+ data.tar.gz: c79cacb209980a10e9b1d3adccc1e1f83aa8c6d5eaddaa9fe7ec099deb3d5609
5
5
  SHA512:
6
- metadata.gz: c5bb290ae60c2375e0748a41dc6e8dfdc9b422f2718b24b81759f7985c947050afd0389fefa2d3950d240f1cf3c1f0432bd58aee33c1aa8deed46e46beab6107
7
- data.tar.gz: 63703e115fea73c8aa32859719020a68c8e91cee2454260923fae72ebc3bd0e76e30607a526f98238ba8a1c85a828b892d46e99dddf4adea96228d6f2fe60396
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|
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "3.0.1-a"
2
+ VERSION = "3.0.1-b"
3
3
  end
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.a
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-21 00:00:00.000000000 Z
11
+ date: 2021-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment