lib/rails/auth/acl/middleware.rb in rails-auth-1.0.0 vs lib/rails/auth/acl/middleware.rb in rails-auth-1.1.0
- old
+ new
@@ -20,10 +20,10 @@
@app = app
@acl = acl
end
def call(env)
- raise NotAuthorizedError, "unauthorized request" unless @acl.match(env)
+ raise NotAuthorizedError, "unauthorized request" unless Rails::Auth.authorized?(env) || @acl.match(env)
@app.call(env)
end
end
end
end