From d288edf2c9f3537a0fe3ad0df59b2e4622394e33 Mon Sep 17 00:00:00 2001 From: Chaos Date: Fri, 4 Feb 2022 20:41:48 +0100 Subject: [PATCH] Hotfix 2 SafeSchematicNode --- .../src/de/steamwar/schematicsystem/SafeSchematicNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SchematicSystem_Core/src/de/steamwar/schematicsystem/SafeSchematicNode.java b/SchematicSystem_Core/src/de/steamwar/schematicsystem/SafeSchematicNode.java index 0046164..f9d2fda 100644 --- a/SchematicSystem_Core/src/de/steamwar/schematicsystem/SafeSchematicNode.java +++ b/SchematicSystem_Core/src/de/steamwar/schematicsystem/SafeSchematicNode.java @@ -43,7 +43,7 @@ public class SafeSchematicNode { return Result.NOT_A_DIR; } - if(SchematicNode.getSchematicsAccessibleByUser(user.getId(), newParent.getParent()) + if(SchematicNode.getSchematicsAccessibleByUser(user.getId(), newParent.getId()) .stream().map(SchematicNode::getName).anyMatch(s -> s.equalsIgnoreCase(node.getName()))) { return Result.ALREADY_IN_DIRECTORY; }