diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-15 16:22:08 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-15 16:22:08 -0700 |
commit | fbed704f3b6a8237e815be9586eb753cc78d20c3 (patch) | |
tree | fed9a01c015f5231e188cc7bc894dba0cc8d50a0 /actions | |
parent | 2114f7dd6e30a650aab38c9b1a2860f3e73e65c2 (diff) |
don't show create-a-group link if not logged in
Diffstat (limited to 'actions')
-rw-r--r-- | actions/groups.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/actions/groups.php b/actions/groups.php index 26b52a5fc..b49d80f37 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; |