We have everything installed correctly, but when an admin goes to /admin_data it throws “not authorized”.
heres the relevant code in config/initializers/admin_data.rb
AdminData.config do |config|
config.is_allowed_to_view = lambda {|controller| return true if current_user.admin = true }
config.is_allowed_to_update = lambda {|controller| return true if current_user.admin = true }
end
Could be the condition you’re using to check equality:
vs
You might consider just:
since nil or false will be NOT == true