Skip to content

Commit

Permalink
Move before filters together
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Dec 20, 2023
1 parent 560162e commit 471d39a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/controllers/source_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class SourceController < ApplicationController

before_action :require_scmsync_host_check, only: [:global_command_triggerscmsync]

before_action :require_package, only: [:show_package, :delete_package, :package_command]

# GET /source
#########
def index
Expand Down Expand Up @@ -61,8 +63,6 @@ def show_package_issues
render partial: 'package_issues'
end

before_action :require_package, only: [:show_package, :delete_package, :package_command]

# GET /source/:project/:package
def show_package
if @deleted_package
Expand Down

0 comments on commit 471d39a

Please sign in to comment.