Standardise on avoiding except lists for check_api_readable

Although this is technically duplicative, it's much easier to read
and therefore to maintain, particularly if you put the _readable one
first.
This commit is contained in:
Andy Allan 2024-05-29 14:33:20 +01:00
parent 995bfa91ff
commit f2aaec4735
6 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
module Api
class WaysController < ApiController
before_action :check_api_readable
before_action :check_api_writable, :only => [:create, :update, :delete]
before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]
authorize_resource