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/js/js.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/js/js.js')
-rw-r--r-- | core/js/js.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/js/js.js b/core/js/js.js index f32bd554555..e9e66fd63fc 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1,5 +1,3 @@ -/* global oc_isadmin */ - var oc_debug; var oc_webroot; @@ -611,16 +609,6 @@ Object.assign(window.OC, { }, /** - * Returns whether the current user is an administrator - * - * @return {bool} true if the user is an admin, false otherwise - * @since 9.0.0 - */ - isUserAdmin: function() { - return oc_isadmin; - }, - - /** * Warn users that the connection to the server was lost temporarily * * This function is throttled to prevent stacked notfications. |