diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-03 09:07:31 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-03 15:49:49 +0200 |
commit | d68be1ae4dd1abbd64c8075ca495d55dc1f491db (patch) | |
tree | 49bb52498acb8940f1fd6d10af22eb1f9b9ede57 /core/src/globals.js | |
parent | a7a35d32fd04d7bdc27261a1fa4a51c91c0b2cab (diff) | |
download | nextcloud-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 '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 b84ef10d22b..9fcf03ba9ee 100644 --- a/core/src/globals.js +++ b/core/src/globals.js @@ -108,6 +108,7 @@ window['moment'] = moment window['OC'] = OC setDeprecatedProp('oc_config', OC.config, 'use OC.config instead') +setDeprecatedProp('oc_isadmin', OC.isUserAdmin(), 'use OC.isUserAdmin() instead') setDeprecatedProp('OCDialogs', OC.dialogs, 'use OC.dialogs instead') window['OCP'] = OCP window['OCA'] = OCA |