Community

How can I remove menu link to profiles?

Such a small thing but it has me stumped. Obviously I don't want anonymous users seeing a members list even when you click a name and finally it says access denied on individual user profiles. I just don't want a members list visible to non members at all. I don't want it in the navigation menu for anyone not logged in.
But because it is all in a view then regardless of permissions set to not allowed for anon users and in content access, in views it is 'permissions view published content' so it shows the list and comes up in menu. So I tried changing that in views to permission 'edit own profile" and that made it disappear from the menu but I'm not sure if that is the correct way of doing things?

Comments

It should disappear

It should disappear automatically if the permission View user profiles is not granted to anonymous users. Go to (yoursite)/admin/people/permissions and scroll down or text-search View user profiles. It is presumably currently checked for anonymous users - uncheck it. Clear cache (go to admin/config/development/performance) and the profiles link should be gone. If not then there is some other problem, possibly in your theme.

Please post back here if this works, for the benefit of other readers.

no permission to anon

I swear to you anonymous has never been checked for viewing profiles- it is all very straightforward and I have flushed cache many times.

I really have no idea why it refuses to work.

I am using sub theme from jackson.

=-=

are you using profile2? if so that changes what permissions need to be inspected.

So I tried changing that in views to permission 'edit own profile" and that made it disappear from the menu but I'm not sure if that is the correct way of doing things?

That's a viable way of dealing with it though. Anon user doesn't have rights to edit a profile.

GREAT

You just made my day :)