Adding permissions and testing for resend-invitation service