[Q&A] Assign Capabilities

How can I remove the answer area completely (texbox) unless the user is logged in?

Edit: I just added is_user_logged_in() before the div, and it does what I want.