diff options
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/views/default/blog/group_module.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/blog/views/default/blog/group_module.php b/mod/blog/views/default/blog/group_module.php index 14d41f07a..9a1515585 100644 --- a/mod/blog/views/default/blog/group_module.php +++ b/mod/blog/views/default/blog/group_module.php @@ -34,10 +34,12 @@ if (!$content) { $content = '<p>' . elgg_echo('blog:none') . '</p>'; } -$new_link = elgg_view('output/url', array( - 'href' => "blog/add/$group->guid", - 'text' => elgg_echo('blog:write'), -)); -$content .= "<span class='elgg-widget-more'>$new_link</span>"; +if ($group->canWriteToContainer()) { + $new_link = elgg_view('output/url', array( + 'href' => "blog/add/$group->guid", + 'text' => elgg_echo('blog:write'), + )); + $content .= "<span class='elgg-widget-more'>$new_link</span>"; +} echo elgg_view_module('info', '', $content, array('header' => $header)); |