Skip to content

Commit 2d01ca0

Browse files
solracsficewind1991
authored andcommitted
fix: rely on quota to restrict file uploads
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> # Conflicts: # lib/Listener/BeforeFileSystemSetupListener.php
1 parent 3484e00 commit 2d01ca0

3 files changed

Lines changed: 0 additions & 88 deletions

File tree

lib/Listener/BeforeFileSystemSetupListener.php

Lines changed: 0 additions & 55 deletions
This file was deleted.

lib/RestrictionManager.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
use OC\AppConfig;
1313
use OC\NavigationManager;
1414
use OCA\Files_External\Config\ExternalMountPoint;
15-
use OCA\Guests\Listener\BeforeFileSystemSetupListener;
16-
use OCP\EventDispatcher\IEventDispatcher;
1715
use OCP\Files\Config\IMountProviderCollection;
18-
use OCP\Files\Events\BeforeFileSystemSetupEvent;
1916
use OCP\Files\Mount\IMountPoint;
2017
use OCP\INavigationManager;
2118
use OCP\IRequest;
@@ -38,7 +35,6 @@ public function __construct(
3835
private readonly Config $config,
3936
private readonly UserBackend $userBackend,
4037
private readonly LoggerInterface $logger,
41-
private readonly IEventDispatcher $eventDispatcher,
4238
) {
4339
}
4440

@@ -56,8 +52,6 @@ public function setupRestrictions(): void {
5652
}
5753

5854
if ($this->guestManager->isGuest($user)) {
59-
$this->eventDispatcher->addServiceListener(BeforeFileSystemSetupEvent::class, BeforeFileSystemSetupListener::class);
60-
6155
if (!$this->config->allowExternalStorage()) {
6256
$this->mountProviderCollection->registerMountFilter(fn (IMountPoint $mountPoint, IUser $user): bool => !($mountPoint instanceof ExternalMountPoint && $this->guestManager->isGuest($user)));
6357
}

lib/Storage/ReadOnlyJail.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)