mikldt-authenticates_access 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.1.0
@@ -272,7 +272,8 @@ module AuthenticatesAccess
272
272
 
273
273
  # before_save/before_destroy hook installed by authenticates_saves
274
274
  def auth_save_filter
275
- if not allowed_to_save
275
+ @bypass_auth ||= false
276
+ if not (allowed_to_save || @bypass_auth)
276
277
  # An interesting thought: could this throw an HTTP error?
277
278
  false
278
279
  else
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mikldt-authenticates_access}
8
- s.version = "0.0.0"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael DiTore"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mikldt-authenticates_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael DiTore