summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/concerns/mutations/authorizes_project.rb
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