debian-mirror-gitlab/app/services/customer_relations/contacts/base_service.rb
2021-12-11 22:18:48 +05:30

17 lines
324 B
Ruby

# 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