From 492aca05c23d3babf46f152466f578b047240371 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 22 Aug 2014 11:05:20 +1000 Subject: [PATCH] FIX: authorized callback deprecated --- config/initializers/logster.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config/initializers/logster.rb b/config/initializers/logster.rb index 607d7a6de09..652bac1ab4d 100644 --- a/config/initializers/logster.rb +++ b/config/initializers/logster.rb @@ -10,11 +10,6 @@ if Rails.env.production? # suppress trackback spam bots Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }) ] - - Logster.config.authorize_callback = lambda{|env| - user = CurrentUser.lookup_from_env(env) - user && user.admin - } end # middleware that logs errors sits before multisite