nyastodon/app/controllers
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
..
activitypub Fix HTTP responses for salmon and ActivityPub inbox processing (#5200) 2017-10-03 23:21:19 +02:00
admin Merge branch 'gs-master' into glitch-theme 2017-12-04 11:07:01 -06:00
api Merge remote-tracking branch 'origin/master' into gs-master 2017-11-28 11:45:13 -06:00
auth Merge branch 'gs-master' into glitch-theme 2017-12-04 11:07:01 -06:00
concerns Add logging of admin actions (#5757) 2017-11-24 02:05:53 +01:00
oauth Fix #1165 - before_action was called before protect_from_forgery 2017-04-08 02:30:50 +02:00
settings Prepend check_enabled_deletion to Settings::DeletesController (#229) 2017-12-06 16:19:43 -06:00
well_known Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper (#2388) 2017-06-02 22:21:36 +02:00
about_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
account_follow_controller.rb Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
account_unfollow_controller.rb Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
accounts_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
application_controller.rb Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
authorize_follows_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
emojis_controller.rb Encode custom emojis as resolveable objects in ActivityPub (#5243) 2017-10-07 17:43:42 +02:00
follower_accounts_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
following_accounts_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
home_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
intents_controller.rb Add protocol handler. Handle follow intents (#4511) 2017-08-14 04:53:31 +02:00
invites_controller.rb Add consumable invites (#5814) 2017-11-27 16:07:59 +01:00
manifests_controller.rb Make Chrome splash screen same color as web UI's background color (#5169) 2017-10-02 01:23:32 +02:00
media_controller.rb Extract authorization policy for viewing statuses (#3150) 2017-05-29 18:22:22 +02:00
media_proxy_controller.rb Fix incomplete account records being read (#4998) 2017-09-19 06:53:16 +02:00
remote_follow_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
shares_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
statuses_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
stream_entries_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00
tags_controller.rb Finalized theme loading and stuff 2017-11-20 22:13:37 -08:00