Fix logical error in invites#show action