summaryrefslogtreecommitdiffstats
path: root/settings/ajax/togglesubadmins.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/ajax/togglesubadmins.php')
-rw-r--r--settings/ajax/togglesubadmins.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/settings/ajax/togglesubadmins.php b/settings/ajax/togglesubadmins.php
index 5f7126dca34..7aaa90aad5f 100644
--- a/settings/ajax/togglesubadmins.php
+++ b/settings/ajax/togglesubadmins.php
@@ -1,8 +1,5 @@
<?php
-// Init owncloud
-require_once '../../lib/base.php';
-
OC_JSON::checkAdminUser();
OCP\JSON::callCheck();
@@ -16,4 +13,4 @@ if(OC_SubAdmin::isSubAdminofGroup($username, $group)) {
OC_SubAdmin::createSubAdmin($username, $group);
}
-OC_JSON::success(); \ No newline at end of file
+OC_JSON::success();