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 +1 -1
- data/lib/authenticates_access.rb +2 -1
- data/mikldt-authenticates_access.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.1.0
|
data/lib/authenticates_access.rb
CHANGED
@@ -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
|
-
|
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
|