Quote:
Originally Posted by Regenerate
Hi,
I have a (imho bizarre) problem with the downloads:
On http://forum.dutchjoomla.org/local_links.php?catid=3 you can see 5 different downloads. Administrators can download all files, but registered users can only download 'Taalbestanden backend' but are restricted to the download of all other files (while the should be able to download them all).
When I try to download the files directly (putting the adress of the files in the browser instead of trying it through the above page), there's no problem en the download goes as usual. I checked the permissions on the files and tried to find any difference between the file that c?n be downloaded by users and the others, but I cannot find any difference. The "can_access_link" option is enabled for all registered users, for all files (I use the same permission settings for the whole download section).
All files on the server are CHMOD 0644
I tried deleting te files and adding the same ones again, but that has failed as well...
I then searched the database table 'local_linkslink' and in the column 'linkforum' I found that all files have the number -999, except for the 4 files that cannot be downloaded bij normal users. To me, this seems to be causing the problem. Can anyone explain to me how to fix this (exept for just changing it in the database which is just a fix, no solution).
Thanks in advance!
|
LDM has a VB forum-based permissions system built into it, and your problem is related to this.
Every entry and category has an 'associated forum' held in linkforum column (and catforum columns in the linkscat table). Users are only allowed access to an LDM entry/category when they have *both* can view forum and can view other's threads permission to the corresponding forum.
Values of -999 tell LDM that these entries are 'open', i.e. only LDM's own permissions are used, not the forum-based method.
When there is another value, LDM checks the access permissions for your corresponding VB forum.
The forum association is set explicitly on the 'add/edit entry/category' form by users who have LDM's *can_set_permissions* permission. These users see a drop-down list of your VB forums, and can accept the default associated forum, select another forum of choice, or assign the 'open access' value. New entries from other users always take the default value. The default value for categories is set on the main LDM admin settings page (default_forumid); the default value for entries is the value for the category in which they are being placed.
So, I think you have created four entries which are associated with a forum that has restricted user access. You can correct it by editing these entries and changing the associated forum to 'Open Access'.
Let me know if this does not solve the problem.