I have restricted access for two terms to logged in users. This all works well, except for access to attached files. On about 10% of nodes in these terms, logged in users (and UID = 1) erroneously get an access denied message when the trying to download files. This only happens on pages that are TAC controlled, and strangely doesn't happen for all files on the same node. So for example if one node has 6 attached files, some may download and some may not.

I am using private files storage method in Drupal 6.13.

Can you help me solve this frustrating problem?

Comments

david@thrale.com’s picture

A few more bits of info to assist anyone helping me with this problem...

I have force the complete rebuild of the 'node_access' table by disabling, saving then enabling TAC.

I have also force rebuilding of the permissions cache by using "Rebuild permissions" button on: "Administer >> Content Management >> Post settings".

I have CHMOD'd the files direcory and all files 777.

The 'access' table is empty.

The 'term_access' table is...

tid	rid	grant_view	grant_update	grant_delete	grant_create	grant_list
38	1	2	2	2 	0 	1
39 	1 	2 	2 	2 	0 	1

The 'term_access_defaults' table is

vid	rid	grant_view	grant_update	grant_delete	grant_create	grant_list
0	1	1	0	0	0	1
0	2	1	0	0	0	1

I am not using any other node access or file modules.

david@thrale.com’s picture

I have solved the problem - but in doing so, have discovered that the problem was having a private file system /admin/settings/file-system. I switched this to public, and all works fine. It seems that TAC is not fully compatible with private file download setting.

xjm’s picture

Status: Active » Closed (fixed)