too many changes

This commit is contained in:
2026-10-07 02:17:30 +04:00
parent 0c7f3bce90
commit bcf985c17d
74 changed files with 4048 additions and 78 deletions
@@ -32,7 +32,7 @@ public sealed class SaveMediaCommandHandler : IRequestHandler<SaveMediaCommand,
if (request.CollectionId.HasValue)
{
var col = await _collections.GetByIdAsync(request.CollectionId.Value, cancellationToken);
if (col is null || col.OwnerTelegramId != request.OwnerTelegramId)
if (col is null || !col.CanWrite(request.OwnerTelegramId))
throw new DomainException("Target collection not found.");
collectionId = col.Id;
}