mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +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"
|
require_dependency "application_controller"
|
||||||
|
|
||||||
class Presence::PresencesController < ::ApplicationController
|
class Presence::PresencesController < ::ApplicationController
|
||||||
|
requires_plugin PLUGIN_NAME
|
||||||
before_filter :ensure_logged_in
|
before_filter :ensure_logged_in
|
||||||
|
|
||||||
def publish
|
def publish
|
||||||
|
Reference in New Issue
Block a user