2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: Only enable the controller when the plugin is enabled

This commit is contained in:
Robin Ward 2017-09-08 10:45:14 -04:00
parent ac00f8b984
commit 7eb79ea31d

View file

@ -81,6 +81,7 @@ after_initialize do
require_dependency "application_controller"
class Presence::PresencesController < ::ApplicationController
requires_plugin PLUGIN_NAME
before_filter :ensure_logged_in
def publish