gitlab-org--gitlab-foss/app/services/customer_relations/organizations/base_service.rb

17 lines
334 B
Ruby

# frozen_string_literal: true
module CustomerRelations
module Organizations
class BaseService < ::BaseGroupService
private
def allowed?
current_user&.can?(:admin_crm_organization, group)
end
def error(message)
ServiceResponse.error(message: Array(message))
end
end
end
end