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

base_service.rb « organizations « customer_relations « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 63261534b3714886d3a2ab2248cc60cd6400dc40 (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 Organizations
    class BaseService < ::BaseGroupService
      private

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

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