debian-mirror-gitlab/app/graphql/resolvers/concerns/manual_authorization.rb
2021-02-22 17:27:13 +05:30

11 lines
295 B
Ruby

# frozen_string_literal: true
# TODO: remove this entirely when framework authorization is released
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/290216
module ManualAuthorization
def resolve(**args)
super
rescue ::Gitlab::Graphql::Errors::ResourceNotAvailable
nil
end
end