aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2019-05-17 10:48:59 +0200
committerGitHub <noreply@github.com>2019-05-17 10:48:59 +0200
commit96ece59188340803770c82530f2cb972a6d18732 (patch)
tree301975f540498856bb4750f3fc1bb3dfe7e933f4
parent252ade18bfcec87a2f303ecc337d840132d33a69 (diff)
parent4a879b52103aa46a9d8e9152722a5dd9659dcc7d (diff)
downloadnextcloud-server-96ece59188340803770c82530f2cb972a6d18732.tar.gz
nextcloud-server-96ece59188340803770c82530f2cb972a6d18732.zip
Merge pull request #15576 from nextcloud/backport/15564/stable15
[stable15] User management/subadmin: rephrase ambiguous error message
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php2
-rw-r--r--apps/provisioning_api/tests/Controller/UsersControllerTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
index c8882f7b008..30094470a7a 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -773,7 +773,7 @@ class UsersController extends AUserData {
if (count($userSubAdminGroups) <= 1) {
// Subadmin must not be able to remove a user from all their subadmin groups.
- throw new OCSException('Cannot remove user from this group as this is the only remaining group you are a SubAdmin of', 105);
+ throw new OCSException('Not viable to remove user from the last group you are SubAdmin of', 105);
}
}
diff --git a/apps/provisioning_api/tests/Controller/UsersControllerTest.php b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
index 7b235a1d5ab..7772000d51c 100644
--- a/apps/provisioning_api/tests/Controller/UsersControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/UsersControllerTest.php
@@ -2516,7 +2516,7 @@ class UsersControllerTest extends TestCase {
/**
* @expectedException \OCP\AppFramework\OCS\OCSException
* @expectedExceptionCode 105
- * @expectedExceptionMessage Cannot remove user from this group as this is the only remaining group you are a SubAdmin of
+ * @expectedExceptionMessage Not viable to remove user from the last group you are SubAdmin of
*/
public function testRemoveFromGroupAsSubAdminFromLastSubAdminGroup() {
$loggedInUser = $this->getMockBuilder(IUser::class)->disableOriginalConstructor()->getMock();