Profile Privacy 1.0
Useful for forums that use category permission to create multiple distinct communities within one installation instant of Vanilla (that makes administration much easier).
In such a setup access to categories is typically controlled by category permission roles and users in one community are isolated from users in another community.
The plugin will only allow access to the profile of a user if:
1. The user looks at his own profile
2. The user is an Administrator
3. The user shares a role with the user's profile the wants to see.
The plugin also closes some other ways users can see the names of users in other communities. See the plugin source.
The source is heavily commented to help admins modify it for their own needs.
I also included a debug function I wrote to help me through this journey.