mikldt-authenticates_access 0.0.0 → 0.1.0
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.
- 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
|