diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-07 20:31:07 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-16 19:53:02 -0500 |
commit | a823e18207c814ca6020d64a89cb0ea1e365eadb (patch) | |
tree | ccf30863c6690e0bf2bd199a8d7818ba1ff5cda2 /views/default/js | |
parent | b361e2a7152943c938fca21906873206bbb90206 (diff) | |
download | elgg-a823e18207c814ca6020d64a89cb0ea1e365eadb.tar.gz elgg-a823e18207c814ca6020d64a89cb0ea1e365eadb.tar.bz2 |
Refs #4007 previous solution to admin population in ElggUser was throwing warnings
Diffstat (limited to 'views/default/js')
-rw-r--r-- | views/default/js/initialize_elgg.php | 1 |
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) . ');'; } |