• Emelia Smith's avatar
    Improve require_admin! and require_staff! filters (#7018) · 2e597518
    Emelia Smith authored
    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!
application_controller_spec.rb 8.87 KB