So, I'm working on a Drupal site that, for reasons unknown, shows the "create content" menu item even when the user is logged out. Since I don't allow anonymous users to post on this site, clicking on that menu item gives a "permission denied" error. Not exactly the sort of user experience I want to provide.
Well, I just came up with this bit of code to fix the problem. It goes in index.php after the call to drupal_bootstrap():
Share and enjoy! (Or just give me funny looks. That works too.)
(Update: If that seems too complicated, you may want to give this a try!)