aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-27 07:49:11 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-27 07:49:11 -0400
commit10b0218765f2cffbde5b3117bb7e8c53cd142eb1 (patch)
tree2ff2bef7b3a71804bf4c27a26f7c079a24fb66c4 /engine
parent8e255f9d19b7ae65f39664627946a09a61911c4a (diff)
downloadelgg-10b0218765f2cffbde5b3117bb7e8c53cd142eb1.tar.gz
elgg-10b0218765f2cffbde5b3117bb7e8c53cd142eb1.tar.bz2
login page should not be displayed to logged in users
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/users.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 54d87b2fd..843b897e9 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -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);