A more helpful "you don't have permissions"-notification?

I think security should not be an issue when the group in question is freely accessible (ie. “anyone can join from the Groups page”) for everyone. In that specific case there could even be “This URL is visible for group Foo members only, do you want to join this group?”-message.

But at the very least allowing some kind of explanatory content to be added would be very welcome.