From ff75fd84aca136360d05e4980a98718b9c4484b0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 25 Sep 2011 22:10:40 -0700 Subject: Don't let a logged in user go through new-user registration. --- src/controllers/Users.class.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/controllers') diff --git a/src/controllers/Users.class.php b/src/controllers/Users.class.php index 2461f65..52fd33c 100644 --- a/src/controllers/Users.class.php +++ b/src/controllers/Users.class.php @@ -59,6 +59,10 @@ class Users extends Controller { public function new_user($routed, $vars) { // since there will never be a remainder to `users/new', we can // use that parameter to pass in some data. + if (Login::isLoggedIn()) { + $this->showView('users/new-logged-in', array()); + exit(); + } if (!isset($vars['errors'])) $vars['errors'] = array(); global $mm; $pm = $mm->pluginManager(); $vars['antispam_html'] = $pm->callHook('antispam_html'); -- cgit v1.2.3-54-g00ecf