data tree FEATURE no_config new_implicit flag
diff --git a/src/tree_data.c b/src/tree_data.c
index df4ca43..69852d0 100644
--- a/src/tree_data.c
+++ b/src/tree_data.c
@@ -1345,6 +1345,8 @@
     while ((iter = lys_getnext(iter, sparent, mod ? mod->compiled : NULL, LYS_GETNEXT_WITHCHOICE))) {
         if ((impl_opts & LYD_IMPLICIT_NO_STATE) && (iter->flags & LYS_CONFIG_R)) {
             continue;
+        } else if ((impl_opts & LYD_IMPLICIT_NO_CONFIG) && (iter->flags & LYS_CONFIG_W)) {
+            continue;
         }
 
         switch (iter->nodetype) {