dev add violation notion
Test Workflow / test (push) Successful in 4s

This commit is contained in:
vladp
2026-03-17 16:52:35 +07:00
parent f1e0f9594e
commit 2d8f904bfd
3 changed files with 8 additions and 1 deletions
@@ -128,7 +128,7 @@ public class ViolationNotionService {
.stream()
.map(User::getId)
.toList();
if (companyUsers.contains(userId)) {
if (!companyUsers.contains(userId)) {
throw new SecurityException("User does not have access to this file");
}
} else if (!file.getUserId().equals(userId)) {