All current evidence of visual perspective taking in dogs can possibly be explained by dogs reacting to certain stimuli rather than understanding what others see. In the current study, we set up a situation in which contextual information and social cues are in conflict. A human always forbade the dog from taking a piece of food. The part of the room being illuminated was then varied, for example, either the area where the human was seated or the area where the food was located was lit. Results show that dogs steal significantly more food when it is dark compared to when it is light. While stealing forbidden food the dog’s behaviour also depends on the type of illumination in the room. Illumination around the food, but not the human, affected the dogs’ behaviour. This indicates that dogs do not take the sight of the human as a signal to avoid the food. It also cannot be explained by a low-level associative rule of avoiding illuminated food which dogs actually approach faster when they are in private. The current finding therefore raises the possibility that dogs take into account the human’s visual access to the food while making their decision to steal it.