summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--settings/ajax/removegroup.php1
-rw-r--r--settings/ajax/removeuser.php1
-rw-r--r--settings/ajax/togglegroups.php1
3 files changed, 3 insertions, 0 deletions
diff --git a/settings/ajax/removegroup.php b/settings/ajax/removegroup.php
index 33e1a514c88..b4af6a9c744 100644
--- a/settings/ajax/removegroup.php
+++ b/settings/ajax/removegroup.php
@@ -2,6 +2,7 @@
// Init owncloud
require_once '../../lib/base.php';
+require_once '../../lib/subadmin.php';
OC_JSON::checkAdminUser();
OCP\JSON::callCheck();
diff --git a/settings/ajax/removeuser.php b/settings/ajax/removeuser.php
index 1e3cd2993b0..9d37c6b6537 100644
--- a/settings/ajax/removeuser.php
+++ b/settings/ajax/removeuser.php
@@ -2,6 +2,7 @@
// Init owncloud
require_once '../../lib/base.php';
+require_once '../../lib/subadmin.php';
OC_JSON::checkSubAdminUser();
OCP\JSON::callCheck();
diff --git a/settings/ajax/togglegroups.php b/settings/ajax/togglegroups.php
index 0b4fe9af4d7..d204a675588 100644
--- a/settings/ajax/togglegroups.php
+++ b/settings/ajax/togglegroups.php
@@ -2,6 +2,7 @@
// Init owncloud
require_once '../../lib/base.php';
+require_once '../../lib/subadmin.php';
OC_JSON::checkSubAdminUser();
OCP\JSON::callCheck();