Anyone who can view a ticket can now create/edit ticket comments. #1255.

Factor out calculation of a user's partnered providers.