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,5 +1,7 @@
|
|||
module Api
|
||||
class CapabilitiesController < ApiController
|
||||
skip_before_action :check_api_readable
|
||||
|
||||
authorize_resource :class => false
|
||||
|
||||
before_action :set_request_formats
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue