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:
parent
995bfa91ff
commit
f2aaec4735
6 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue