Permalink
Browse files

fix(collections): only register collections menu items when logged in

Fixes #9249
  • Loading branch information...
beck24 authored and mrclay committed Dec 20, 2015
1 parent ea4c7fe commit 1b88d43a9b0033d7f1681eec4d70644e6396369a
Showing with 1 addition and 1 deletion.
  1. +1 −1 engine/lib/friends.php
View
@@ -181,7 +181,7 @@ function _elgg_collections_page_handler($page_elements) {
*/
function _elgg_setup_collections_menu() {
if (elgg_get_logged_in_user_guid() == elgg_get_page_owner_guid()) {
if (elgg_is_logged_in() && elgg_get_logged_in_user_guid() == elgg_get_page_owner_guid()) {
$user = elgg_get_page_owner_entity();
elgg_register_menu_item('page', array(

0 comments on commit 1b88d43

Please sign in to comment.