Closed (fixed)
Project:
Field Validation
Version:
7.x-2.0-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2012 at 21:30 UTC
Updated:
22 Aug 2012 at 21:41 UTC
Hello,
Iam using field validation for validate "match against a field" in the user profile. This works fine for the administrator. But for "normal" user there is always the message witch is displayed when I do a wrong input. But the input is right. Can anyone help me please?
Best regards
Frank
Comments
Comment #1
g089h515r806 commentedhave you installed other access control modules?
Does normal user have permission to access the field which validate against?
Comment #2
fraweg commentedHello,
thanks for your fast answer!
Yes I am using (for the profile) profile2 with profile2-privacy and (for the account) field permissions.
Every user has the right to edit an view his own fields. This issue happens in the account and also in the profile.
Thanks for any help!
Frank
Edit:
I have tested out all permissions on my site. This feature works only if I set this Node permission to the user:
But for the administrator this value must not be set to work.
Here is the code of my validation rule:
Does anyone have the same issue or have an Idea to make it work?
Comment #3
fraweg commentedHello g089h515r806,
do you have any Idea what I can do? I really need this feature.
Best regards
Frank
Comment #4
g089h515r806 commented1, one method is give normal user more permission
2, another method is copy the logic code of "match against a field" , change it to meet your requirment,you could change the code to let it bypass the permission check.
Comment #5
g089h515r806 commentedFixed, Test it with latest Code.
I have added following code to bypass all access checkings:
Comment #6
fraweg commentedThanks a lot !!!
Thats are really good news. I will test it the next days.
Best regards
Frank