Don't treat anonymous users as owners when group has pending invites
EE version of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13037. (That's already merged - there is a spec failure on EE when picking it, not a merge conflict.)
EE version of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13037. (That's already merged - there is a spec failure on EE when picking it, not a merge conflict.)