diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-07 20:31:07 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-07 20:31:07 -0500 |
commit | c8f62956115245d023c5f049524e450f3fbcd5d6 (patch) | |
tree | 7109a9fb25d8fcfb4ea3897ab97df7769779519b /views/default | |
parent | 3c0fe711be8f13cf7f46bfc667718f1ec3232db2 (diff) | |
download | elgg-c8f62956115245d023c5f049524e450f3fbcd5d6.tar.gz elgg-c8f62956115245d023c5f049524e450f3fbcd5d6.tar.bz2 |
Refs #4007 previous solution to admin population in ElggUser was throwing warnings
Diffstat (limited to 'views/default')
-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) . ');'; } |