aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/sessions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index f6758425a..0448007e1 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -588,6 +588,7 @@ function session_init($event, $object_type, $object) {
function gatekeeper() {
if (!isloggedin()) {
$_SESSION['last_forward_from'] = current_page_url();
+ register_error(elgg_echo('loggedinrequired'));
forward();
}
}
@@ -601,6 +602,7 @@ function admin_gatekeeper() {
if (!isadminloggedin()) {
$_SESSION['last_forward_from'] = current_page_url();
+ register_error(elgg_echo('adminrequired'));
forward();
}
}