aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/config.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-02-20 19:01:28 +0100
committerLukas Reschke <lukas@statuscode.ch>2014-02-20 19:01:28 +0100
commit917a505af4c2182e585513e5188da17ac00b0cf1 (patch)
treeb168a2b28c138b6d30f64d6b0d723f10f3748558 /core/js/config.php
parentdde9193b2b523a86220cec494b60f15ef3457e65 (diff)
parent169f4cf7ff26932ec1e07bfc3676f22c06859db7 (diff)
downloadnextcloud-server-917a505af4c2182e585513e5188da17ac00b0cf1.tar.gz
nextcloud-server-917a505af4c2182e585513e5188da17ac00b0cf1.zip
Merge pull request #7291 from owncloud/adminess-raghu
Move isadmin to template and rename it to oc_isadmin
Diffstat (limited to 'core/js/config.php')
-rw-r--r--core/js/config.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/js/config.php b/core/js/config.php
index b6875fb73f9..139c3b6d485 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',
+ "oc_isadmin" => 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')),