Skip to content

Commit

Permalink
Remove public upload code
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Oct 5, 2022
1 parent ad286bb commit 1e15618
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions lib/Sabre/Album/PublicAlbumRoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,7 @@ protected function getPhotosLocationInfo() {
}

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.
Expand Down
5 changes: 0 additions & 5 deletions src/views/PublicAlbumContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
:root-title="albumOriginalName"
:title="albumOriginalName"
@refresh="fetchAlbumContent">
<!-- TODO: enable upload on public albums -->
<!-- <UploadPicker :accept="allowedMimes"
:destination="folder.filename"
:multiple="true"
@uploaded="onUpload" /> -->
<div v-if="album.location !== ''" slot="subtitle" class="album__location">
<MapMarker />{{ album.location }}
</div>
Expand Down

0 comments on commit 1e15618

Please sign in to comment.