summaryrefslogtreecommitdiffstats
path: root/core/js/config.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-21 16:04:31 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-21 16:04:31 +0100
commit59ec61dc0327fe8af0a32739ded13971936d4c1b (patch)
treee0a7d59acde8bd126ffd15fae8b23ce949d0ed5b /core/js/config.php
parentb22d82f941d29157d659ec29689c75a8b53a530c (diff)
parentaa0bcf7ba45d004b0c0226fd07696f9f224f9c1c (diff)
downloadnextcloud-server-59ec61dc0327fe8af0a32739ded13971936d4c1b.tar.gz
nextcloud-server-59ec61dc0327fe8af0a32739ded13971936d4c1b.zip
Merge branch 'master' into GuillaumeAmat-patch-1
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 e79b4541301..947577eb985 100644
--- a/core/js/config.php
+++ b/core/js/config.php
@@ -27,6 +27,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')),