summaryrefslogtreecommitdiffstats
path: root/core/src/globals.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-07 20:29:51 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-08 09:44:51 +0200
commit278c281cc9c03ad060ac6a91784058066411c7a8 (patch)
treed82e5fda75a9811bc2e280f3933cc36a99ff9e4b /core/src/globals.js
parenta3800a6810fca68eff1789dc21488389bf22108a (diff)
downloadnextcloud-server-278c281cc9c03ad060ac6a91784058066411c7a8.tar.gz
nextcloud-server-278c281cc9c03ad060ac6a91784058066411c7a8.zip
Deprecate oc_current_user, fix usage and move currentUser to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/globals.js')
-rw-r--r--core/src/globals.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/globals.js b/core/src/globals.js
index aa783ef815f..8476ccaf18e 100644
--- a/core/src/globals.js
+++ b/core/src/globals.js
@@ -111,6 +111,7 @@ window['moment'] = moment
window['OC'] = OC
setDeprecatedProp('oc_appswebroots', OC.appswebroots, 'use OC.appswebroots instead')
setDeprecatedProp('oc_config', OC.config, 'use OC.config instead')
+setDeprecatedProp('oc_current_user', OC.getCurrentUser().uid, 'use OC.getCurrentUser().uid instead')
setDeprecatedProp('oc_debug', OC.debug, 'use OC.debug instead')
setDeprecatedProp('oc_isadmin', OC.isUserAdmin(), 'use OC.isUserAdmin() instead')
setDeprecatedProp('oc_webroot', OC.webroot, 'use OC.getRootPath() instead')