diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2014-02-20 10:26:05 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2014-02-20 10:26:05 +0100 |
commit | b61f0f11c5aa03240d3c18f02a1c790bd43522c0 (patch) | |
tree | 5a1fcb325a3ec6a029f1bac7cbdd1e9bac2ba387 /core/js/config.php | |
parent | 16262e3fd2c00475cc3b43a2684a45cc8ae70829 (diff) | |
download | nextcloud-server-b61f0f11c5aa03240d3c18f02a1c790bd43522c0.tar.gz nextcloud-server-b61f0f11c5aa03240d3c18f02a1c790bd43522c0.zip |
Move oc_isadmin to the config JS script
Diffstat (limited to 'core/js/config.php')
-rw-r--r-- | core/js/config.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/js/config.php b/core/js/config.php index b6875fb73f9..6185be523e7 100644 --- a/core/js/config.php +++ b/core/js/config.php @@ -24,6 +24,7 @@ foreach(OC_App::getEnabledApps() as $app) { $array = array( "oc_debug" => (defined('DEBUG') && DEBUG) ? 'true' : 'false', + "ox_isadmin" => p(OC_User::isAdminUser(OC_User::getUser()) ? 'true' : 'false'); "oc_webroot" => "\"".OC::$WEBROOT."\"", "oc_appswebroots" => str_replace('\\/', '/', json_encode($apps_paths)), // Ugly unescape slashes waiting for better solution "datepickerFormatDate" => json_encode($l->l('jsdate', 'jsdate')), |