mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix: Do not use circle provider class constant
This is to avoid issues if the circles app is disabled but you still have circles shares in your DB Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
2419f4bebb
commit
2406677b40
1 changed files with 1 additions and 2 deletions
|
|
@ -11,7 +11,6 @@ declare(strict_types=1);
|
|||
namespace OC\Share20;
|
||||
|
||||
use OC\Share20\Exception\ProviderException;
|
||||
use OCA\Circles\ShareByCircleProvider;
|
||||
use OCA\FederatedFileSharing\FederatedShareProvider;
|
||||
use OCA\ShareByMail\ShareByMailProvider;
|
||||
use OCA\Talk\Share\RoomShareProvider;
|
||||
|
|
@ -185,7 +184,7 @@ class ProviderFactory implements IProviderFactory {
|
|||
} elseif ($shareType === IShare::TYPE_EMAIL) {
|
||||
$provider = $this->getShareByMailProvider();
|
||||
} elseif ($shareType === IShare::TYPE_CIRCLE) {
|
||||
$provider = $this->getProvider(ShareByCircleProvider::IDENTIFIER);
|
||||
$provider = $this->getProvider('ocCircleShare');
|
||||
} elseif ($shareType === IShare::TYPE_ROOM) {
|
||||
$provider = $this->getRoomShareProvider();
|
||||
} elseif ($shareType === IShare::TYPE_DECK) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue