Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/impersonate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-02-20 12:58:36 +0300
committerJoas Schilling <coding@schilljs.com>2018-02-23 11:19:31 +0300
commit0d100363d69d052470a28cd5225d595a19338080 (patch)
tree36628844344b96e3232e73298fba39d3e4c8368f /js
parentf81c2058ac2da7a7ebf2672d0e1587636474e5f6 (diff)
Allow subadmins to impersonate users
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'js')
-rw-r--r--js/impersonate.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/js/impersonate.js b/js/impersonate.js
index 8882409..db38e41 100644
--- a/js/impersonate.js
+++ b/js/impersonate.js
@@ -2,10 +2,6 @@
(function(OC, $){
$(document).ready(function() {
- if(!OC.isUserAdmin()) {
- return;
- }
-
function impersonate(userId) {
$.post(
OC.generateUrl('apps/impersonate/user'),