File Downloads, Permission, and 1.8.4
Hi,
I cannot download files — according to my tikiwiki site. But I'm the admin!
I have installed and configured tikiwiki on a windows server — everything is working almost perfecly except for a few issues, one of which I mention above. I have a group called GroupA and I have set its permissions similar to group Registered. To set GroupA's permissions I login as admin -> select Groups -> select GroupA's permissions KEY -> scroll to the bottom -> select "File gals" -> scroll to the bottom -> check the tiki_p_admin_file_galleries checkbox -> and click update. I then logout and login back in as a GroupA user (which I have created and assigned to only GroupA and Anonymous). I go to the file gallery section, where I can see the files, I click on one of them and I get "You can not download files". Uhg!
In searching for an answer I came upon another tiki users request for a fix to the same problem:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>I have installed Tikiwiki 1.8.3 as a intranet for a small foundation. Everything works perfectly except for the File Gallery. Uploading files is not a problem at all, but when i want to download one of these files I get a "You can not download files" error message.
The group the user is a member of has permission tiki_p_admin_file_galleries and the File Gallery has only global permissions, so the user should be able to download the file. However the user is unable to download a file, neither is the admin able to download a file.
Here is the weird part, when I change line 42 of tiki-download_file.php from
if($tiki_p_admin_file_galleries == 'y') {
to
if($tiki_p_admin_file_galleries == 'n') {
the download is no problem. But now users without proper permissions can also download the file.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I went thru the code and saw what the tikiuser above was talking about, but I cannot let anonymous users download files. Is/was there a fix for this? I don't wish to use the level feature to assign permissions to a group — is this a problem? Am I doing something wrong?
Please let me know. Thanks much!
-Patrick