Commit fbed704f authored by Evan Prodromou's avatar Evan Prodromou

don't show create-a-group link if not logged in

parent 2114f7dd
......@@ -100,11 +100,13 @@ class GroupsAction extends Action
function showContent()
{
$this->elementStart('p', array('id' => 'new_group'));
$this->element('a', array('href' => common_local_url('newgroup'),
'class' => 'more'),
_('Create a new group'));
$this->elementEnd('p');
if (common_logged_in()) {
$this->elementStart('p', array('id' => 'new_group'));
$this->element('a', array('href' => common_local_url('newgroup'),
'class' => 'more'),
_('Create a new group'));
$this->elementEnd('p');
}
$offset = ($this->page-1) * GROUPS_PER_PAGE;
$limit = GROUPS_PER_PAGE + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment