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,6 +1,6 @@
module Api
class TracesController < ApiController
before_action :check_api_readable, :only => [:show, :data]
before_action :check_api_readable
before_action :check_api_writable, :only => [:create, :update, :destroy]
before_action :set_locale
before_action :authorize