]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
login page should not be displayed to logged in users
authorCash Costello <cash.costello@gmail.com>
Thu, 27 Oct 2011 11:49:11 +0000 (07:49 -0400)
committerCash Costello <cash.costello@gmail.com>
Thu, 27 Oct 2011 11:49:11 +0000 (07:49 -0400)
engine/lib/users.php

index 54d87b2fdc84a210a261137bb5adafc5f6c6c6a0..843b897e944c54db0ab404d9cd86acad2d574846 100644 (file)
@@ -1141,10 +1141,13 @@ function elgg_user_account_page_handler($page_elements, $handler) {
  * dropdown login link.
  *
  * @return void
- * @todo finish
  * @access private
  */
 function elgg_user_login_page_handler() {
+       if (elgg_is_logged_in()) {
+               forward();
+       }
+
        $login_box = elgg_view('core/account/login_box');
        $content = elgg_view_layout('one_column', array('content' => $login_box));
        echo elgg_view_page(elgg_echo('login'), $content);