aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2024-08-06 23:25:47 +0200
committerGitHub <noreply@github.com>2024-08-06 23:25:47 +0200
commitf0b658014a2402ee652288831fa065fe4f04f7cc (patch)
tree86fa80d435cd54dde97f1d1eefc81640cee13467 /apps/files_sharing/lib
parent70940d077d940a9bc8cf8e931289fb08ef97bddd (diff)
parent6002566d929f8160bd85dc642f86e0616f0f394e (diff)
downloadnextcloud-server-f0b658014a2402ee652288831fa065fe4f04f7cc.tar.gz
nextcloud-server-f0b658014a2402ee652288831fa065fe4f04f7cc.zip
Merge pull request #47070 from nextcloud/circToTeam
fix(share): Rename Circle to Team
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index bc85da36d27..10e9a033071 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -230,7 +230,7 @@ class ShareAPIController extends OCSController {
$result['token'] = $share->getToken();
} elseif ($share->getShareType() === IShare::TYPE_CIRCLE) {
// getSharedWith() returns either "name (type, owner)" or
- // "name (type, owner) [id]", depending on the Circles app version.
+ // "name (type, owner) [id]", depending on the Teams app version.
$hasCircleId = (substr($share->getSharedWith(), -1) === ']');
$result['share_with_displayname'] = $share->getSharedWithDisplayName();
@@ -742,14 +742,14 @@ class ShareAPIController extends OCSController {
$share->setPermissions($permissions);
} elseif ($shareType === IShare::TYPE_CIRCLE) {
if (!\OC::$server->getAppManager()->isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) {
- throw new OCSNotFoundException($this->l->t('You cannot share to a Circle if the app is not enabled'));
+ throw new OCSNotFoundException($this->l->t('You cannot share to a Team if the app is not enabled'));
}
$circle = \OCA\Circles\Api\v1\Circles::detailsCircle($shareWith);
- // Valid circle is required to share
+ // Valid team is required to share
if ($circle === null) {
- throw new OCSNotFoundException($this->l->t('Please specify a valid circle'));
+ throw new OCSNotFoundException($this->l->t('Please specify a valid team'));
}
$share->setSharedWith($shareWith);
$share->setPermissions($permissions);
@@ -1949,7 +1949,7 @@ class ShareAPIController extends OCSController {
// EMAIL SHARES
$mailShares = $this->shareManager->getSharesBy($this->currentUser, IShare::TYPE_EMAIL, $path, $reshares, -1, 0);
- // CIRCLE SHARES
+ // TEAM SHARES
$circleShares = $this->shareManager->getSharesBy($this->currentUser, IShare::TYPE_CIRCLE, $path, $reshares, -1, 0);
// TALK SHARES