Created
April 20, 2013 18:23
-
-
Save msouth/5426891 to your computer and use it in GitHub Desktop.
incorrect fix [edit: maybe it is correct after all] for problem with new auth stuff in D::P::SimpleCRUD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/lib/Dancer/Plugin/SimpleCRUD.pm | |
+++ b/lib/Dancer/Plugin/SimpleCRUD.pm | |
@@ -1176,6 +1193,8 @@ sub _ensure_auth { | |
Dancer::ModuleLoader->load('Dancer::Plugin::Auth::Extensible') | |
or die "Can't use auth settings without" | |
. " Dancer::Plugin::Auth::Extensible!"; | |
+ } else { | |
+ return $handler; | |
} | |
if ($auth_settings->{require_login}) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment