FIX: authorized callback deprecated

This commit is contained in:
Sam 2014-08-22 11:05:20 +10:00
parent 00ab6f5faa
commit 492aca05c2
1 changed files with 0 additions and 5 deletions

View File

@ -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