aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/initialize_elgg.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/js/initialize_elgg.php')
-rw-r--r--views/default/js/initialize_elgg.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/default/js/initialize_elgg.php b/views/default/js/initialize_elgg.php
index 09e0b27bc..b45c33463 100644
--- a/views/default/js/initialize_elgg.php
+++ b/views/default/js/initialize_elgg.php
@@ -3,6 +3,7 @@
* Initialize Elgg's js lib with the uncacheable data
*/
+if (0) { ?><script><?php }
?>
/**
* Don't want to cache these -- they could change for every request
@@ -41,6 +42,7 @@ if ($user instanceof ElggUser) {
$user_json['subtype'] = $user->getSubtype();
$user_json['url'] = $user->getURL();
+ $user_json['admin'] = $user->isAdmin();
echo 'elgg.session.user = new elgg.ElggUser(' . json_encode($user_json) . ');';
}