diff options
Diffstat (limited to 'lib/Sabre/Album/PublicAlbumRoot.php')
-rw-r--r-- | lib/Sabre/Album/PublicAlbumRoot.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Sabre/Album/PublicAlbumRoot.php b/lib/Sabre/Album/PublicAlbumRoot.php index 54ccaa87..f53c4a59 100644 --- a/lib/Sabre/Album/PublicAlbumRoot.php +++ b/lib/Sabre/Album/PublicAlbumRoot.php @@ -53,15 +53,7 @@ class PublicAlbumRoot extends AlbumRoot { } protected function addFile(int $sourceId, string $ownerUID): bool { - // TODO: implement public album upload throw new Forbidden('Not allowed to create a file in a public album'); - - if (in_array($sourceId, $this->album->getFileIds())) { - throw new Conflict("File $sourceId is already in the folder"); - } - - $this->albumMapper->addFile($this->album->getAlbum()->getId(), $sourceId, $ownerUID); - return true; } // Do not reveal collaborators for public albums. |