diff options
Diffstat (limited to 'apps/files_trashbin/lib/Sabre/RootCollection.php')
-rw-r--r-- | apps/files_trashbin/lib/Sabre/RootCollection.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Sabre/RootCollection.php b/apps/files_trashbin/lib/Sabre/RootCollection.php index e425fb448e2..be31d200f71 100644 --- a/apps/files_trashbin/lib/Sabre/RootCollection.php +++ b/apps/files_trashbin/lib/Sabre/RootCollection.php @@ -23,14 +23,17 @@ declare(strict_types=1); */ namespace OCA\Files_Trashbin\Sabre; +use OCP\IConfig; use Sabre\DAV\INode; use Sabre\DAVACL\AbstractPrincipalCollection; use Sabre\DAVACL\PrincipalBackend; class RootCollection extends AbstractPrincipalCollection { - public function __construct(PrincipalBackend\BackendInterface $principalBackend) { + public function __construct(PrincipalBackend\BackendInterface $principalBackend, IConfig $config) { parent::__construct($principalBackend, 'principals/users'); + + $this->disableListing = !$config->getSystemValue('debug', false); } /** |