@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user