diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-12 18:45:43 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-12 18:45:43 +0000 |
commit | 78f023b3b149e1f1c8c9428162e3b6551145b9e1 (patch) | |
tree | d54a530bc862adbb4e2c68e01937b44533316b31 /mod/bookmarks/views | |
parent | 6b604bb47cdb7fca2e9345e075418d432992d0fa (diff) | |
download | elgg-78f023b3b149e1f1c8c9428162e3b6551145b9e1.tar.gz elgg-78f023b3b149e1f1c8c9428162e3b6551145b9e1.tar.bz2 |
Fixes #3071 group "widgets" check permissions now
git-svn-id: http://code.elgg.org/elgg/trunk@8667 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/views')
-rw-r--r-- | mod/bookmarks/views/default/bookmarks/group_module.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/bookmarks/views/default/bookmarks/group_module.php b/mod/bookmarks/views/default/bookmarks/group_module.php index ea1358aeb..ff85c23ff 100644 --- a/mod/bookmarks/views/default/bookmarks/group_module.php +++ b/mod/bookmarks/views/default/bookmarks/group_module.php @@ -35,10 +35,12 @@ if (!$content) { $content = '<p>' . elgg_echo('bookmarks:none') . '</p>'; } -$new_link = elgg_view('output/url', array( - 'href' => "bookmarks/add/$group->guid", - 'text' => elgg_echo('bookmarks:add'), -)); -$content .= "<span class='elgg-widget-more'>$new_link</span>"; +if ($group->canWriteToContainer()) { + $new_link = elgg_view('output/url', array( + 'href' => "bookmarks/add/$group->guid", + 'text' => elgg_echo('bookmarks:add'), + )); + $content .= "<span class='elgg-widget-more'>$new_link</span>"; +} echo elgg_view_module('info', '', $content, array('header' => $header)); |