diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-25 17:33:40 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-25 17:33:40 +0100 |
commit | a4ea3563e7f95685869d812cc969baadaeb91b1f (patch) | |
tree | de943b8959c7a0cd20216a5011c441e85cbcda53 /core/js/js.js | |
parent | ce753231eb3ed36a2f5250a2b9cc118fad8dad37 (diff) | |
parent | 0a1350d5ac306b4e8c2183b17d562319d69c4ac3 (diff) | |
download | nextcloud-server-a4ea3563e7f95685869d812cc969baadaeb91b1f.tar.gz nextcloud-server-a4ea3563e7f95685869d812cc969baadaeb91b1f.zip |
Merge pull request #21830 from owncloud/systemtags-sidebar-permissions
Systemtags sidebar permissions
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index d24a46fc0bb..74121fa3d80 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -6,6 +6,8 @@ * The undefined checks fix the broken ie8 console */ +/* global oc_isadmin */ + var oc_debug; var oc_webroot; @@ -674,7 +676,17 @@ var OC={ */ getLocale: function() { 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; + }, }; /** |