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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
324 B
Ruby
Raw Normal View History

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