debian-mirror-gitlab/app/services/customer_relations/organizations/base_service.rb

18 lines
323 B
Ruby
Raw Normal View History

2021-11-11 11:23:49 +05:30
# 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