Commit Graph

2 Commits (6da24aad4cafdef8d8a2c92bac2002a5fc2fe9c8)

Author SHA1 Message Date
Emelia Smith 2e59751823 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!
8 years ago
Akihiko Odaki 019f3377bb Spec Admin::BaseController (#3328) 9 years ago