} else {
/*
* If we have a NC add operation then we need also the
- * "TYPE_WRITE" flag in order to succeed.
+ * "TYPE_WRITE" flag in order to succeed,
+ * unless this NC is not instantiated
*/
- if (!(instanceType & INSTANCE_TYPE_WRITE)) {
+ if (!(instanceType & INSTANCE_TYPE_UNINSTANT) &&
+ !(instanceType & INSTANCE_TYPE_WRITE)) {
ldb_set_errstring(ldb, "instancetype: if TYPE_IS_NC_HEAD was set, then also TYPE_WRITE is requested!");
return LDB_ERR_UNWILLING_TO_PERFORM;
}