f7cloud_client/apps/photos/lib/Sabre/Album/PublicAlbumPhoto.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

23 lines
548 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2022 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Photos\Sabre\Album;
use Sabre\DAV\Exception\Forbidden;
use Sabre\DAV\IFile;
class PublicAlbumPhoto extends AlbumPhoto implements IFile {
public function delete(): never {
throw new Forbidden('Deleting photos from a public album is not allowed.');
}
public function put($data): never {
throw new Forbidden('Changing a photo from a public album is not allowed.');
}
}