only permit public viewing with -publicViewable

[#72843274]