]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #6030 - Hide group bookmarklet from non-members
authorJuho Jaakkola <juho.jaakkola@mediamaisteri.com>
Thu, 31 Oct 2013 15:01:15 +0000 (17:01 +0200)
committerJuho Jaakkola <juho.jaakkola@mediamaisteri.com>
Thu, 31 Oct 2013 15:01:15 +0000 (17:01 +0200)
mod/bookmarks/start.php

index a5685388ba7ed90c8b28a4106189431be2057bbe..caea4358786959846875339d66eed78f566b57c4 100644 (file)
@@ -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');