I have a content type that Anon users can submit, and I only want to allow one submission per person. I am requiring they enter their email address and using this to check for duplicate submissions from the same person via the Unique Field module

It works perfectly if i am logged in, I get the error saying "The email field must be unique", however, when I try and submit it from an anon user (not logged in) it allows me to submit the content/node. The check either isn't happening or I have my settings mis-configured.

Any help?

CommentFileSizeAuthor
#5 unique_field_anonymous-1846088.patch567 byteskkalashnikov
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anthonyvz’s picture

[UPDATE]

It's actually ONLY working for the root user. I can submit duplicate nodes as any other user.

Is there a permissions thing I am missing here??

anthonyvz’s picture

[UPDATE]

This will only work if the user has the permission to Access the content.

I am using Content Access to restrict access, seems these two modules don't work together.

D2ev’s picture

It's may be an issue due to entityfield query which won't return result for other user role. You can add " $efq->addTag('DANGEROUS_ACCESS_CHECK_OPT_OUT');" after line number 299 in unique_field.module file.

Pravin Ajaaz’s picture

Category: Bug report » Support request
Issue summary: View changes
kkalashnikov’s picture

Please apply attached patch for this