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

This commit is contained in:
Evan Prodromou 2009-06-15 16:22:08 -07:00
parent 2114f7dd6e
commit fbed704f3b
1 changed files with 7 additions and 5 deletions

View File

@ -100,11 +100,13 @@ class GroupsAction extends Action
function showContent() function showContent()
{ {
$this->elementStart('p', array('id' => 'new_group')); if (common_logged_in()) {
$this->element('a', array('href' => common_local_url('newgroup'), $this->elementStart('p', array('id' => 'new_group'));
'class' => 'more'), $this->element('a', array('href' => common_local_url('newgroup'),
_('Create a new group')); 'class' => 'more'),
$this->elementEnd('p'); _('Create a new group'));
$this->elementEnd('p');
}
$offset = ($this->page-1) * GROUPS_PER_PAGE; $offset = ($this->page-1) * GROUPS_PER_PAGE;
$limit = GROUPS_PER_PAGE + 1; $limit = GROUPS_PER_PAGE + 1;