summaryrefslogtreecommitdiffstats
path: root/core/src/globals.js
diff options
context:
space:
mode:
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')