akkounts/app/controllers/services/chat_controller.rb
Râu Cao 1ea8b22a59
Some checks are pending
continuous-integration/drone/push Build is running
WIP Add service page for Chat
2023-08-07 18:16:14 +02:00

15 lines
344 B
Ruby

class Services::ChatController < Services::BaseController
before_action :authenticate_user!
before_action :require_service_available
def show
@service_enabled = current_user.services_enabled.include?(:xmpp)
end
private
def require_service_available
http_status :not_found unless Setting.ejabberd_enabled?
end
end