Gossamer Forum
Home : Products : DBMan : Customization :

validate mod

Quote Reply
validate mod
Can somebody tell me in English what this line means:

(!$per_admin) and ($in{$db_validated_field} = "No");

It's part of the validate mod and is added to the html.pl code in several places.

Quote Reply
Re: validate mod In reply to
(!$per_admin) means User not having admin permissions
($in{$db_validated_field} = "No") means the field containing the validated ("Yes" or "No") is equal to "No". Together they mean that if the user calling the record is not an admin and when the field "Validated" is No then the database will do something.

Well, that's my interpretation. Not too sure I'm absolutely correct.

Julian