Gold ownership was banned in Austria in WW1 (at least according to an article I read), the article doesn't say it but I'd assume it also happened in Germany. So the way you could have it was by having gold outside the country, which is likely to create the cost of storage. But if you are going to have assets outside your country, there might be an even better solution
The article states that "those who held real estate throughout managed to save the capital thus invested." also it states that "Those who held funds in dollars, pounds or other stable currencies, or in gold, saved their capital."
"Getting down to specifics, we can say that those who bought a well-diversified list of stocks in solid, well-established companies quite early in the inflation and who held on throughout the period and also through the stabilization crisis saved much or all of their capital"
So an even better solution to gold is either real estate or stocks in a foreign currency. That way you get the best of both worlds (hyperinflation protection AND a productive asset that earns a risk premia). One can go even further in protection by owning, for instance, a globally diversified portfolio of stocks (along with REITs and rental properties) that way you are protected multiple times by owning several different currencies (which helps with FX vol) in assets that tend to hold up during hyperinflation (which is only likely to happen in one country out of the dozens that you own the assets)
Overall, it just seems a better return producing solution than having gold