diff options
author | Juho Jaakkola <juho.jaakkola@mediamaisteri.com> | 2013-10-31 17:01:15 +0200 |
---|---|---|
committer | Juho Jaakkola <juho.jaakkola@mediamaisteri.com> | 2013-10-31 17:01:15 +0200 |
commit | 5a6b259a320256c2f75828193aa8da93eebe226e (patch) | |
tree | fdfdc2ef971e39241050681a0cb758cc14776d70 /mod | |
parent | 392e8e691066c7a7ca9ef82c24f30ef235e1df93 (diff) | |
download | elgg-5a6b259a320256c2f75828193aa8da93eebe226e.tar.gz elgg-5a6b259a320256c2f75828193aa8da93eebe226e.tar.bz2 |
Fixes #6030 - Hide group bookmarklet from non-members
Diffstat (limited to 'mod')
-rw-r--r-- | mod/bookmarks/start.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php index a5685388b..caea43587 100644 --- a/mod/bookmarks/start.php +++ b/mod/bookmarks/start.php @@ -285,8 +285,11 @@ function bookmarks_page_menu($hook, $type, $return, $params) { if (!$page_owner) { $page_owner = elgg_get_logged_in_user_entity(); } - + if ($page_owner instanceof ElggGroup) { + if (!$page_owner->isMember()) { + return $return; + } $title = elgg_echo('bookmarks:bookmarklet:group'); } else { $title = elgg_echo('bookmarks:bookmarklet'); |