mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:41:13 +08:00
FIX: Only enable the controller when the plugin is enabled
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user