Fix the get_email_addresses_for_group query with local_sites.

Review Request #6374 — Created Sept. 25, 2014 and submitted — Latest diff uploaded

Information

Review Board
release-2.0.x
a31879d...

Reviewers

Against all odds, some users actually end up trying to set up local sites. In
this case, a user was a member of a review group on a local site, which broke
the query that chooses e-mail addresses for a normal group. I've added a
conditional to only check the user's local_site access if the group in question
has a local site.

Ran unit tests.