Hello,
I am in the process of writing a Drupal 5 module, I have been following the tutorial here: http://drupal.org/node/82920
The problem I am running into is the access restrictions. I have set the module up, it installs properly, the access controls show up properly, and I've left the access / admin checkboxes empty for both anon / authenticated users. Basically, the only ones that should see the module are people logged in as admin (currently only me)
Logged in as admin, if I go to http://dev.mysite.com/drupal/mymodule/ or to
http://dev.mysite.com/drupal/?q=mymodule it comes up correctly and displays the content I've set up in the module thus far.
If I log out completely, and goto http://dev.mysite.com/drupal/mymodule/ I get
Access denied
You are not authorized to access this page.
which is correct, I dont want anyone accessing the module who is not authenticated.
However, if I go to http://dev.mysite.com/drupal/?q=mymodule - the module shows up with full access to the content.
My menu function, which I understand allows me to control access to the module, looks like this:
<?php
function emedia_menu() {
$items = array();
$items[] = array(
'path' => 'admin/settings/mymodule',
'title' => t('Mymodule settings'),
'description' => t('Manage general MyModule settings for your website.'),
'callback' => 'drupal_get_form',