Hide Drupal Web Form until Logged in? I am running a competition whereby users must fill in a webform to enter. However, I am also using Facebook connect, and want the web form page to display, with the body and all the rest except for the form itself, unless the user is logged in. What is the best way to:


Allow access to the webform if anonymous?
Not allow the user to submit the form if anonymous?
Hide the form and show my custom Facebook login button if the user is not logged in?


Point 1 is basically using Webforms the default way. And point 3 I can probably do by just editing the template of the node. But I am not sure how I can override the validation of the form to stop the user from actually entering the competition if he is not logged in.

Any ideas on what the best way is to do this?
I haven't done this, but it should work to do something like this: Once you've created the webform, on the settings for your webform, under "Submission access" you can choose to restrict "Roles that can submit this webform" to "authenticated user" and under "Advanced Settings" there's a checkbox to make the webform "Available as a block." Once you have the webform block, restrict the block to authenticated users only. Put the content that should be available to anonymous users on a new page and add your webform block to that page. The webform should then only show up on that page for authenticated users.