debian-mirror-gitlab/app/graphql/mutations/concerns/mutations/authorizes_project.rb
2020-11-24 15:15:51 +05:30

17 lines
310 B
Ruby

# 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