I am using drupal 7, and I have created a custom module. This module consists of a form that can be used for adding records to the database. But I saw that the link to accessible to all the users, even anonymous users.
I want to restrict the access to this module and form from all the normal users; only the administrator users should access it.
I have created a role called Administrator and permitted my module only for the administrator. It still doesn't work.
How can I restrict the access to my custom module?