When a Doc is associated with a hidden group, do not display the affiliation to non-members

It remains possible to create a public Doc from a hidden group, but now non-
members cannot see the name of that group on the Doc or in public directories.

Fixes #316