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

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

module CustomerRelations
  module Contacts
    class BaseService < ::BaseGroupService
      private

      def allowed?
        current_user&.can?(:admin_contact, group)
      end

      def error(message)
        ServiceResponse.error(message: Array(message))
      end
    end
  end
end