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; }