diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-02 18:41:00 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-02 18:41:00 +0000 |
commit | c1a2f850535701d32e58374eb5ceb0f74626a1d2 (patch) | |
tree | 4fbefda479d45293699883e05ca29c7bd028d3cf /mod/invitefriends | |
parent | e4b668a35eb076a23c5878f5a43c053b4c7e2e60 (diff) | |
download | elgg-c1a2f850535701d32e58374eb5ceb0f74626a1d2.tar.gz elgg-c1a2f850535701d32e58374eb5ceb0f74626a1d2.tar.bz2 |
Refs #2968 invite friends link should not be available for non-logged in users
git-svn-id: http://code.elgg.org/elgg/trunk@8914 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/invitefriends')
-rw-r--r-- | mod/invitefriends/start.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/mod/invitefriends/start.php b/mod/invitefriends/start.php index 8f71314b3..f39d25f4b 100644 --- a/mod/invitefriends/start.php +++ b/mod/invitefriends/start.php @@ -12,13 +12,15 @@ function invitefriends_init() { elgg_register_action('invitefriends/invite', elgg_get_plugins_path() . 'invitefriends/actions/invite.php'); - $params = array( - 'name' => 'invite', - 'text' => elgg_echo('friends:invite'), - 'href' => "invite", - 'contexts' => array('friends'), - ); - elgg_register_menu_item('page', $params); + if (elgg_is_logged_in()) { + $params = array( + 'name' => 'invite', + 'text' => elgg_echo('friends:invite'), + 'href' => "invite", + 'contexts' => array('friends'), + ); + elgg_register_menu_item('page', $params); + } } /** |