openstreetmap-website/app/controllers/api
Andy Allan 83425edd8d Move api error handling and timeouts to parent class
Fixes #4861

Since the around_action is defined before authorize_resource is called,
the handler needs to pass on the CanCan::AccessDenied exception.

I've added the timeouts where I think they were missing (e.g. UserPreferencesController)
but I've kept the exception for changeset#upload and traces#create
2024-10-02 16:37:32 +01:00
..
capabilities_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
changeset_comments_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
changesets_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
map_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
messages_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
nodes_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
notes_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
old_elements_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
old_nodes_controller.rb Rename api OldController to OldElementsController 2024-04-02 16:11:09 +03:00
old_relations_controller.rb Rename api OldController to OldElementsController 2024-04-02 16:11:09 +03:00
old_ways_controller.rb Rename api OldController to OldElementsController 2024-04-02 16:11:09 +03:00
permissions_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
relations_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
tracepoints_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
traces_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
user_blocks_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
user_preferences_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
users_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
versions_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00
ways_controller.rb Move api error handling and timeouts to parent class 2024-10-02 16:37:32 +01:00