masto-fe/app/controllers/settings
David Yip 017fc81caf
Prepend check_enabled_deletion to Settings::DeletesController (#229)
The specs for Settings::DeletesController include an example that
sets Settings.open_deletion to false and expects the "if deletion is not
available, redirect to root" logic to run.  However, this spec does not
set up a user, which means that the spec (intentionally or otherwise)
expects this redirection to work with unauthenticated access.

We should preserve that behavior.  To do so, we prepend the deletion
check to the action chain set up by Settings::BaseController, so that
said check occurs before the authenticate_user! check.
2017-12-06 16:19:43 -06:00
..
exports Remove exports/base controller in favor of shared concern (#3444) 2017-05-30 19:06:01 +02:00
two_factor_authentication 2FA controller cleanup (#2296) 2017-04-22 04:23:17 +02:00
applications_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
base_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
deletes_controller.rb Prepend check_enabled_deletion to Settings::DeletesController (#229) 2017-12-06 16:19:43 -06:00
exports_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
follower_domains_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
imports_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
keyword_mutes_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
migrations_controller.rb Fix account migration feature (#5837) 2017-11-28 14:31:23 +01:00
notifications_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
preferences_controller.rb Various fixes 2017-12-04 21:58:10 -08:00
profiles_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
sessions_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
two_factor_authentications_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00