summaryrefslogtreecommitdiffstats
path: root/lib/private/Template
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-03 09:07:31 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-03 15:49:49 +0200
commitd68be1ae4dd1abbd64c8075ca495d55dc1f491db (patch)
tree49bb52498acb8940f1fd6d10af22eb1f9b9ede57 /lib/private/Template
parenta7a35d32fd04d7bdc27261a1fa4a51c91c0b2cab (diff)
downloadnextcloud-server-d68be1ae4dd1abbd64c8075ca495d55dc1f491db.tar.gz
nextcloud-server-d68be1ae4dd1abbd64c8075ca495d55dc1f491db.zip
Deprecate oc_isadmin and move OC.isUserAdmin() to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Template')
-rw-r--r--lib/private/Template/JSConfigHelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php
index 6ec92ef1cdd..a190371d6d9 100644
--- a/lib/private/Template/JSConfigHelper.php
+++ b/lib/private/Template/JSConfigHelper.php
@@ -167,7 +167,7 @@ class JSConfigHelper {
$array = [
"oc_debug" => $this->config->getSystemValue('debug', false) ? 'true' : 'false',
- "oc_isadmin" => $this->groupManager->isAdmin($uid) ? 'true' : 'false',
+ "_oc_isadmin" => $this->groupManager->isAdmin($uid) ? 'true' : 'false',
"backendAllowsPasswordConfirmation" => $userBackendAllowsPasswordConfirmation ? 'true' : 'false',
"oc_dataURL" => is_string($dataLocation) ? "\"".$dataLocation."\"" : 'false',
"oc_webroot" => "\"".\OC::$WEBROOT."\"",