Improve require_admin! and require_staff! filters (#7018)
Previously these returns 302 redirects instead of 403s, which meant posting links to admin pages in slack caused them to unfurl, rather than stay as a link. Additionally, require_admin! doesn't appear to be actively used, on require_staff!
Showing
- app/controllers/application_controller.rb 2 additions, 2 deletionsapp/controllers/application_controller.rb
- spec/controllers/admin/base_controller_spec.rb 13 additions, 6 deletionsspec/controllers/admin/base_controller_spec.rb
- spec/controllers/application_controller_spec.rb 40 additions, 2 deletionsspec/controllers/application_controller_spec.rb
Please register or sign in to comment