diff options
author | Joas Schilling <coding@schilljs.com> | 2017-01-18 11:43:52 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-01-18 11:43:52 +0100 |
commit | ae77067a073992938a541be7ac6cc966e8e2f00c (patch) | |
tree | b538e24e3965d114c128217f7b0f6f64a7b51be4 /apps/provisioning_api/tests | |
parent | 4bbd52b3f9aa07ebb170ed2ea4dbc67e2af79448 (diff) | |
download | nextcloud-server-ae77067a073992938a541be7ac6cc966e8e2f00c.tar.gz nextcloud-server-ae77067a073992938a541be7ac6cc966e8e2f00c.zip |
No need to check the subadmin again
The user needs to be a subadmin of the group,
otherwise they are not allowed to remove anyone from the group
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/provisioning_api/tests')
-rw-r--r-- | apps/provisioning_api/tests/Controller/UsersControllerTest.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php index e04ee86feae..761b5a5b1cc 100644 --- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php +++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php @@ -1813,11 +1813,6 @@ class UsersControllerTest extends OriginalTest { ->method('isSubAdminofGroup') ->with($loggedInUser, $targetGroup) ->will($this->returnValue(true)); - $subAdminManager - ->expects($this->once()) - ->method('getSubAdminsGroups') - ->with($loggedInUser) - ->will($this->returnValue([$targetGroup])); $this->groupManager ->expects($this->once()) ->method('getSubAdmin') |