FIX: authorized callback deprecated
This commit is contained in:
parent
00ab6f5faa
commit
492aca05c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue