Remove unwanted toolbar links when user is not member of site

From #5598.

Yes, that patch works. I guess all the headers from a normal git patch are completely irrelevant.