There is no policy on the ground although it can be refused to take pictures of the cockpit. In terms of if the pilot wants to feature in the picture or not is purely the pilots choice, as it would be in any other situation in this world.
At the end of the day the majority of the spotters ask to take a picture of the cockpit, they don't ask to take a picture of the pilots...