2021-10-06 20:09:20 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module CustomerRelations
|
|
|
|
module Contacts
|
|
|
|
class BaseService < ::BaseGroupService
|
|
|
|
private
|
|
|
|
|
|
|
|
def allowed?
|
2021-10-29 11:11:56 -04:00
|
|
|
current_user&.can?(:admin_crm_contact, group)
|
2021-10-06 20:09:20 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def error(message)
|
|
|
|
ServiceResponse.error(message: Array(message))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|