Shouldn't the invitation to galleries be associated with *projects* rather than with people?
That is, the "invite to gallery" button should be on the project page, and the sent message you should be
personX invites you to submit projectY to galleryZ
(with appropriate links and submit/don't submit buttons).
Offline