avo 2.21.1.pre.pr1484 → 2.21.2.pre.pr1486

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b8cee2cababd0268d117574aafc0420608446a1b891eb1a8ff580d870c7e69d
4
- data.tar.gz: 7e9246ff3da0857334ac9b823524f6455572f894352b63cf42fc2d09a7c0e226
3
+ metadata.gz: f5460c088fcdb06944cf17960a56317ca92ce641858d0be2ae930dddbe527bd0
4
+ data.tar.gz: e2973cb82ccd2a68c857be57bd18a73c45656d340574c00bb135e67ee3c999b0
5
5
  SHA512:
6
- metadata.gz: 974f906c8484ff9126278cdf716f647ac6ebb9957fbbfe7537dc82873a3c20e2b132f53fe36e6cb1b80e86a862c811fae2a513d835bbd78bd60e852b31886ef4
7
- data.tar.gz: f2d62cbe19efe4ed1b4e062dfe44d3ec8ae338b69873af0eb59467cf20670cac85ede4bfaab7d19b3b86c3a7dfe0a23ba2a713f55f856364c5b4b7cb9df90f8a
6
+ metadata.gz: 47a6063f100b7ba2a49aac977b6d6e6961d75c3af62befac1d3e8de2154c84396021d37cae03cacc74a872f72172c9a506af332e3c2c6b025f2f9ff45f3743c3
7
+ data.tar.gz: a6112c2759fddc32613f17eba6cf6ae7c3049c0abfb89ce50c314b2cd7f89d5df6b1e743fcf44663fc1f4fcfdc92f85368464ec9a13bb5b29b12b03d5ade27d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.21.1.pre.pr1484)
4
+ avo (2.21.2.pre.pr1486)
5
5
  actionview (>= 6.0)
6
6
  active_link_to
7
7
  activerecord (>= 6.0)
@@ -29,7 +29,6 @@ module Avo
29
29
 
30
30
  def authorize(user, record, action, policy_class: nil, **args)
31
31
  return true if skip_authorization
32
- return true if user.nil?
33
32
 
34
33
  client.authorize user, record, action, policy_class: policy_class
35
34
 
@@ -64,7 +63,7 @@ module Avo
64
63
  end
65
64
 
66
65
  def apply_policy(user, model, policy_class: nil)
67
- return model if skip_authorization || user.nil?
66
+ return model if skip_authorization
68
67
 
69
68
  client.apply_policy(user, model, policy_class: policy_class)
70
69
  rescue NoPolicyError => error
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.21.1.pre.pr1484" unless const_defined?(:VERSION)
2
+ VERSION = "2.21.2.pre.pr1486" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.21.1.pre.pr1484
4
+ version: 2.21.2.pre.pr1486
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin