From 7eb79ea31dec6ce7fa63c8dccbdef4956f413e8c Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 8 Sep 2017 10:45:14 -0400 Subject: [PATCH] FIX: Only enable the controller when the plugin is enabled --- plugins/discourse-presence/plugin.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/discourse-presence/plugin.rb b/plugins/discourse-presence/plugin.rb index 9ee7a498470..aff34aa27ea 100644 --- a/plugins/discourse-presence/plugin.rb +++ b/plugins/discourse-presence/plugin.rb @@ -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