From b150b9439a05d954e8ea17bc366b50d2a50e4ae8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 9 Mar 2011 10:15:19 -0500 Subject: [PATCH] don't show register in login if already logged in --- lib/logingroupnav.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/logingroupnav.php b/lib/logingroupnav.php index 3c67f76322..5d1b52f795 100644 --- a/lib/logingroupnav.php +++ b/lib/logingroupnav.php @@ -66,7 +66,8 @@ class LoginGroupNav extends Menu _('Login with a username and password'), $action_name === 'login'); - if (!(common_config('site','closed') || common_config('site','inviteonly'))) { + if (!common_logged_in() && + !(common_config('site','closed') || common_config('site','inviteonly'))) { $this->action->menuItem(common_local_url('register'), // TRANS: Menu item for registering with the StatusNet site. _m('MENU','Register'),