Protecting menu entries in Drupal 7

Sometimes you want to add menu items that can only be accessed if the user is logged in. With Drupal 6, the menu_per_role module is the way to go. That module, however, is not available for D7, at the time of this writing. So, what to do?

If the availability is simply a matter of the user being authenticated, you can add the menu item to the User menu. This menu is only available to authenticated users. If the availability is more granular than simply an authenticated user, such as a specific role, you can create a new menu, assign the menu items to it, and specify that the block that lists the menu only be available to the role(s) you wish!

Of course, the Drupal Community isn't the only place to give back. It's a complex world, and there are as many worthy causes as their are melodies, with most being served by multiple charitable organizations. Here are a few of those that strike a 7th chord with me.