I am using drupal 6, 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 this form (
http://localhost/drupal/my_module/form) is accessible to all the users, even anonymous users.
I want to restrict the access to this module and form from all the normal users. I want only the administrator to 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 ?