aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-11-01 05:21:08 -0700
committerSteve Clay <steve@mrclay.org>2013-11-01 05:21:08 -0700
commit550ef1fe32fc8da940c42359f7a6347e65138c85 (patch)
tree884eee6758b7cc2b5238be953b132dfea6b866b9
parent267ab289f7209118885438d022ada99ea2079c38 (diff)
parent5a6b259a320256c2f75828193aa8da93eebe226e (diff)
downloadelgg-550ef1fe32fc8da940c42359f7a6347e65138c85.tar.gz
elgg-550ef1fe32fc8da940c42359f7a6347e65138c85.tar.bz2
Merge pull request #6195 from juho-jaakkola/group_bookmarklet
Fixes #6030 - Hide group bookmarklet from non-members
-rw-r--r--mod/bookmarks/start.php5
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');