From d68be1ae4dd1abbd64c8075ca495d55dc1f491db Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 3 May 2019 09:07:31 +0200 Subject: Deprecate oc_isadmin and move OC.isUserAdmin() to the bundle Signed-off-by: Christoph Wurst --- core/js/js.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'core/js/js.js') 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; @@ -610,16 +608,6 @@ Object.assign(window.OC, { return $('html').prop('lang'); }, - /** - * 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 * -- cgit v1.2.3