diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-07 20:29:51 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-08 09:44:51 +0200 |
commit | 278c281cc9c03ad060ac6a91784058066411c7a8 (patch) | |
tree | d82e5fda75a9811bc2e280f3933cc36a99ff9e4b /core/src/globals.js | |
parent | a3800a6810fca68eff1789dc21488389bf22108a (diff) | |
download | nextcloud-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.js | 1 |
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') |