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
This commit is contained in:
parent
e8da505518
commit
83425edd8d
18 changed files with 6 additions and 27 deletions
|
@ -2,8 +2,6 @@ module Api
|
|||
class MapController < ApiController
|
||||
authorize_resource :class => false
|
||||
|
||||
around_action :api_call_handle_error, :api_call_timeout
|
||||
|
||||
before_action :set_request_formats
|
||||
|
||||
# This is probably the most common call of all. It is used for getting the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue