git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit b150b943 authored by Evan Prodromou's avatar Evan Prodromou

don't show register in login if already logged in

parent 3d310c80
......@@ -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'),
......
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