How do I enable a menu link only when the user has created a node? In my website the user can create a node. I want a menu link to appear only after the authenticated user has created the node and not before that. 

Is it possible to enable a menu link only when the user has created a node? 

For example, the menu items that appear when users log in are:


Item 1
Item 2
Item 3


When users add a node, I want another item that points to another page to appear in the menu. If users didn't create a node, they don't have access to the new item.

How can I do this?

I created another role when the user creates a node using the Rules module, and set permissions for the user with the new role to view the new menu item.
Here are the steps

For example If you want give permissions for authenticated users to create 'Basic page'

Go to Home » Administration » People (admin/people/permissions) and check the checkbox

Basic page: Create new content and Administer menus and menu items for AUTHENTICATED USER 

That's it now authenticated  user can create basic page (node/add/page) with menu item. 

If you want to generate URL/path aliases automatically, use the Pathauto module 


  The Pathauto module automatically generates URL/path aliases for various kinds of content (nodes, taxonomy terms, users) without requiring the user to manually specify the path alias. This allows you to have URL aliases like /category/my-node-title instead of /node/123. The aliases are based upon a "pattern" system that uses tokens which the administrator can change.