Move check_api_readable to api_controller
It's easier to skip the check in the two places that we need to, and include it by default everywhere else.
This commit is contained in:
parent
0bbfe922ea
commit
c1cccd40fc
17 changed files with 5 additions and 18 deletions
|
@ -1,7 +1,5 @@
|
|||
module Api
|
||||
class TracepointsController < ApiController
|
||||
before_action :check_api_readable
|
||||
|
||||
authorize_resource
|
||||
|
||||
around_action :api_call_handle_error, :api_call_timeout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue