Allowing users to bypass/ignore unique field constraints

caschbre - July 9, 2009 - 00:44
Project:Unique field
Version:6.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

I'm dig'n the use of the unique field contrib. I'm using it for one of my groups to ensure that an author can only create one group. However what I'm finding is that in some cases there is a need for user #1 to create multiple groups and I'm not able to get around the unique field setting.

Would any of the following (or something similar) be possible in a future release?

a) Control unique field setting by role?

b) Allow user #1 to override unique setting at time of content creation. The reason I word it this way is I would want user #1 to have to make the decision to allow duplicate values when creating content instead of always allowing user #1 to make duplicates.

#1

detour - July 22, 2009 - 17:16
Title:Option to ignore unique validation by role, user, etc.» Allowing users to bypass/ignore unique field constraints
Component:Miscellaneous» Code
Status:active» needs work

I think the easiest way to implement this would be to add an access permission that allows users to bypass/ignore the unique field constraints when they submit a node and get the error message back.

Therefore the module still would provide a warning about the duplicate value, but also permits authorized users to decide for the particular case whether a duplicate value is appropriate.

I can't promise to make this change a priority. If you or anyone else would like to sponsor development of this feature, please contact me.

 
 

Drupal is a registered trademark of Dries Buytaert.