开发者

AdminData authentication suddently failing

开发者 https://www.devze.com 2023-04-10 20:25 出处:网络
in a Rails 2.3.6 I\'ve been using for months AdminData with this code inside \"initializers/admin_data_settings.rb\":

in a Rails 2.3.6 I've been using for months AdminData with this code inside "initializers/admin_data_settings.rb":

AdminData::Config.set = {
  :is_allowed_to_view => lambda {|controlle开发者_运维问答r| controller.send('admin?') },
  :is_allowed_to_update => lambda {|controller| controller.send('admin?') }
}

Since yesterday, though, AdminData is allowing everybody to view and update data, even unauthorized users.

Of course I have a proper "admin?" method in application_controller but even:

AdminData::Config.set = {
  :is_allowed_to_view => false,
  :is_allowed_to_update => false
}

is allowing people to see/update data.

What can be causing this?

Thanks, Augusto


Although I'm not familiar with the AdminData add-on, it's probably a case of that authentication system not being engaged in that area.

0

精彩评论

暂无评论...
验证码 换一张
取 消