Change lightfinder permissions for groups

This commit is contained in:
cake
2025-11-18 00:27:25 +01:00
parent ab9cdeb682
commit dd4cb73b9b
2 changed files with 4 additions and 2 deletions

View File

@@ -216,6 +216,7 @@ public class ServerFilesController : ControllerBase
{
hash = hash.ToUpperInvariant();
}
var existingFile = await dbContext.Files.SingleOrDefaultAsync(f => f.Hash == hash);
if (existingFile != null) return Ok();
@@ -273,6 +274,7 @@ public class ServerFilesController : ControllerBase
{
hash = hash.ToUpperInvariant();
}
var existingFile = await dbContext.Files.SingleOrDefaultAsync(f => f.Hash == hash);
if (existingFile != null) return Ok();