diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index 6a576330b..006bf947a 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -3,7 +3,7 @@ class Projects::IssuesController < Projects::BaseController skip_before_action :authenticate_user!, only: [:index, :show] if APP_CONFIG['anonymous_access'] before_action :load_issue, only: %i(show edit update destroy) before_action :load_and_authorize_label, only: %i(create_label update_label destroy_label) - before_action :find_collaborators, only: %i(new create show search_collaborators) + before_action :find_collaborators, only: :search_collaborators layout false, only: [:update, :search_collaborators] diff --git a/app/controllers/projects/pull_requests_controller.rb b/app/controllers/projects/pull_requests_controller.rb index 4e89dd2e6..07d7b8f8e 100644 --- a/app/controllers/projects/pull_requests_controller.rb +++ b/app/controllers/projects/pull_requests_controller.rb @@ -4,7 +4,6 @@ class Projects::PullRequestsController < Projects::BaseController before_action :load_issue, except: %i(index autocomplete_to_project new create) before_action :load_pull, except: %i(index autocomplete_to_project new create) - before_action :find_collaborators, only: %i(new create show) def new to_project = find_destination_project(false)