Skip to content

Instantly share code, notes, and snippets.

@msouth
Created April 20, 2013 18:23
Show Gist options
  • Save msouth/5426891 to your computer and use it in GitHub Desktop.
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
--- 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