void with_skip_flags( database& db, uint32_t skip_flags, Lambda callback ) { node_property_object& npo = db.node_properties(); skip_flags_restorer restorer( npo, npo.skip_flags ); npo.skip_flags = skip_flags; callback(); return; }
auth_inhibitor(database& db) : db(db), old_flags(db.node_properties().skip_flags) { db.node_properties().skip_flags |= skip_authority_check; }