Hi folks -

I am trying to implement securing particular folders of documents. This is based on http://www.drupalcoder.com/story/406-mixing-private-and-public-downloads.... The code is supposed to be adding a permission so that when users request a file they are denied unless they have appropriate permissions.

I know I had this working several weeks ago, but discovered that it is no longer working and can't figure out why. In trying to debug it, it seems that perhaps for some reason hook_menu is not being called? Is there a simple way to confirm that the code is actually running?

Here's the code. It doesn't seem to do anything. I'm actually wondering if it's running at all.

function acs_private_downloads_menu() {
$items = array();
$items['/system/files/myprivatefolder'] = array(
'access arguments' => array('access private downloads folders'),
'page callback' => 'file_download',
'page arguments' => array('myprivatefolder'),
'type' => MENU_CALLBACK,
);

return $items;

}

To test it I've been using these steps:

Log out.
Browse to "http://domain/system/files/myprivatefolder/mydocumentname.pdf".
I expect that I will get a permissions error, but instead I get the file downloading.

I have emptied my cache multiple times thinking perhaps an old, non-functional version of the code was stuck in there, but that also seems to have no impact, nor does uninstalling/reinstalling the module.

Any help would be much appreciated.