From: Evan Prodromou Date: Mon, 15 Jun 2009 23:22:08 +0000 (-0700) Subject: don't show create-a-group link if not logged in X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbed704f3b6a8237e815be9586eb753cc78d20c3;p=quix0rs-gnu-social.git don't show create-a-group link if not logged in --- diff --git a/actions/groups.php b/actions/groups.php index 26b52a5fcd..b49d80f377 100644 --- a/actions/groups.php +++ b/actions/groups.php @@ -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;