Skip to content

Commit

Permalink
Rearrange before_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Oct 9, 2024
1 parent b6ba110 commit 355d381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/sample_types_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ class SampleTypesController < ApplicationController
include Seek::AssetsCommon

before_action :samples_enabled?
before_action :find_sample_type, only: %i[show edit update destroy template_details batch_upload]
before_action :check_isa_json_compliance, only: %i[edit update manage manage_update]
before_action :find_and_authorize_requested_item, except: %i[create batch_upload destroy index new template_details]
before_action :find_sample_type, only: %i[batch_upload destroy template_details]
before_action :check_no_created_samples, only: [:destroy]
before_action :find_assets, only: [:index]
before_action :auth_to_create, only: %i[new create]
before_action :project_membership_required, only: %i[create new select filter_for_select]
before_action :check_isa_json_compliance, only: %i[edit update manage manage_update]

before_action :find_and_authorize_requested_item, except: %i[index new create]

api_actions :index, :show, :create, :update, :destroy

Expand Down

0 comments on commit 355d381

Please sign in to comment.