Welcome to mirror list, hosted at ThFree Co, Russian Federation.

authorizes_project.rb « mutations « concerns « mutations « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 87341525d6c8b5becb2e217e3ba19d6668a51ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Mutations
  module AuthorizesProject
    include ResolvesProject

    def authorized_find_project!(full_path:)
      authorized_find!(full_path: full_path)
    end

    private

    def find_object(full_path:)
      resolve_project(full_path: full_path)
    end
  end
end