aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-07 20:31:07 -0500
committercash <cash.costello@gmail.com>2011-11-16 19:53:02 -0500
commita823e18207c814ca6020d64a89cb0ea1e365eadb (patch)
treeccf30863c6690e0bf2bd199a8d7818ba1ff5cda2 /views
parentb361e2a7152943c938fca21906873206bbb90206 (diff)
downloadelgg-a823e18207c814ca6020d64a89cb0ea1e365eadb.tar.gz
elgg-a823e18207c814ca6020d64a89cb0ea1e365eadb.tar.bz2
Refs #4007 previous solution to admin population in ElggUser was throwing warnings
Diffstat (limited to 'views')
-rw-r--r--views/default/js/initialize_elgg.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/views/default/js/initialize_elgg.php b/views/default/js/initialize_elgg.php
index 09e0b27bc..f8234f84f 100644
--- a/views/default/js/initialize_elgg.php
+++ b/views/default/js/initialize_elgg.php
@@ -41,6 +41,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) . ');';
}