Ah okay, in that case, the best way is to simply just go in uninvited hahah Only face criminal trespass but can still use the photographs (if one is inclined to go do this way).
However, I do suggest an untested strategy. The photographer can ask his friend (who is a resident) to bring him in. When that has been done, the photographer will be the one shooting the photographs, not the friend.
In that way, a criminal trespass case is less likely to stick, and yet any enforced order of by-laws will not affect the photographer (since the photographer is not bound by them).
They may affect the resident but the court cannot compel the resident compel the photographer to destroy the photographs either! This is similar to the rules of privity of contract.
Yes the resident "may be responsible", but the court has no jurisdiction over the photographer. The most the court can do is to order the resident to pay damages, but that would be another problem because the MCST now has to prove that they suffered damage and quantify it! And that is likely to be difficult from a mere taking of photographs.