This question already has an answer here:
These two questions are nearly identical:
They were asked by different users, but the code is basically the same, and the asked question is only slightly different. Both users have a reputation of about 8.
Should we be able to close one as duplicate of the other, when the user is different?