Andrey Antukh a91502f5e7 🐛 Validate library belongs to same team in link/unlink/sync handlers
Add check-library-team-ownership! helper that verifies both the file
and library share the same team before creating or modifying library
relations. This prevents cross-team library injection where a user
with edit permissions on files in different teams could link them
across team boundaries.

Applied to link-file-to-library, unlink-file-from-library, and
update-file-library-sync-status handlers.

AI-assisted-by: mimo-v2.5
2026-08-03 18:26:47 +02:00
..
2026-07-31 18:53:05 +02:00
2026-06-30 16:15:30 +02:00
2026-01-22 13:55:41 +01:00
2024-05-29 19:05:04 +02:00