aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/embed/start.php')
-rw-r--r--mod/embed/start.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php
index e14e0efd4..1da35aa46 100644
--- a/mod/embed/start.php
+++ b/mod/embed/start.php
@@ -14,8 +14,10 @@ elgg_register_event_handler('init', 'system', 'embed_init');
function embed_init() {
elgg_extend_view('css/elgg', 'embed/css');
elgg_extend_view('css/admin', 'embed/css');
-
- elgg_register_plugin_hook_handler('register', 'menu:longtext', 'embed_longtext_menu');
+
+ if (elgg_is_logged_in()) {
+ elgg_register_plugin_hook_handler('register', 'menu:longtext', 'embed_longtext_menu');
+ }
elgg_register_plugin_hook_handler('register', 'menu:embed', 'embed_select_tab', 1000);
// Page handler for the modal media embed