diff options
Diffstat (limited to 'views/default/simplepie/group_module.php')
-rw-r--r-- | views/default/simplepie/group_module.php | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/views/default/simplepie/group_module.php b/views/default/simplepie/group_module.php index d9860d65f..90c017a86 100644 --- a/views/default/simplepie/group_module.php +++ b/views/default/simplepie/group_module.php @@ -90,18 +90,20 @@ HTML; elgg_pop_context(); if (!$content) { - $content = '<p>' . elgg_echo('simplepie:none') . '</p>'; + $content = '<p>' . elgg_echo('simplepie:none') . '</p>'; +} +if ($group->canEdit()) { + $edit = elgg_view('output/url', array( + 'href' => '#simplepie-form', + 'text' => elgg_echo('edit'), + 'rel' => 'toggle' + )); +} else { + $edit = false; } - -$edit = elgg_view('output/url', array( - 'href' => '#simplepie-form', - 'text' => elgg_echo('edit'), - 'rel' => 'toggle' -)); echo elgg_view('groups/profile/module', array( - 'title' => elgg_echo('RSS Group'), - 'content' => $content, - 'all_link' => $edit, + 'title' => elgg_echo('RSS Group'), + 'content' => $content, + 'all_link' => $edit, )); - |