diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-10-27 14:09:45 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-10-29 11:31:18 +0100 |
commit | c6f6a8758b3f08e47c3a8f45a67d09698376b2e2 (patch) | |
tree | bfd52190961e28ae97fa65a96df05b1fe0390a2f /settings/factory | |
parent | f428d31a5d1f91c6e7aa96fd8550c75c02cc0963 (diff) | |
download | nextcloud-server-c6f6a8758b3f08e47c3a8f45a67d09698376b2e2.tar.gz nextcloud-server-c6f6a8758b3f08e47c3a8f45a67d09698376b2e2.zip |
Drop OC_SubAdmin and replace usages
Diffstat (limited to 'settings/factory')
-rw-r--r-- | settings/factory/subadminfactory.php | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/settings/factory/subadminfactory.php b/settings/factory/subadminfactory.php deleted file mode 100644 index 5a0f6e4e1e4..00000000000 --- a/settings/factory/subadminfactory.php +++ /dev/null @@ -1,57 +0,0 @@ -<?php -/** - * @author Lukas Reschke <lukas@owncloud.com> - * @author Morris Jobke <hey@morrisjobke.de> - * - * @copyright Copyright (c) 2015, ownCloud, Inc. - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * - */ - -namespace OC\Settings\Factory; - -/** - * @package OC\Settings\Factory - */ -class SubAdminFactory { - /** - * Get the groups $uid is SubAdmin of - * @param string $uid - * @return array Array of groups that $uid is subadmin of - */ - function getSubAdminsOfGroups($uid) { - return \OC_SubAdmin::getSubAdminsGroups($uid); - } - - /** - * Whether the $group is accessible to $uid as subadmin - * @param string $uid - * @param string $group - * @return bool - */ - function isGroupAccessible($uid, $group) { - return \OC_SubAdmin::isGroupAccessible($uid, $group); - } - - /** - * Whether $uid is accessible to $subAdmin - * @param string $subAdmin - * @param string $uid - * @return bool - */ - function isUserAccessible($subAdmin, $uid) { - return \OC_SubAdmin::isUserAccessible($subAdmin, $uid); - } -} |