Loading...
 
Features / Usability

Features / Usability


filegallery download problem

posts: 2

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.

Could someone please shed some light on this inconsistency because it is driving me crazy.

posts: 12

hi, did you ever figure out this problem? I am having the same problem. I agree with your temporary fix, but I, as you stated, cannot afford to let everyone download files that aren't in their "space". If you figured out a way to solve the problem, please let me know or post it to your original message. It would help me out a ton. I appreciate your time.

Thanks much,

Patrick


posts: 1092

Doesn't seem you have the tiki_p_admin_file_galleries set? Did you check in admin-> groupes
And if you set tiki_p_download_files perm, any change?


posts: 12

Thank you for your quick response.

Oh yes, I've been around and round with setting, unsetting, and re-setting permissions in different configurations for group after group after group. The file download permissions are set — and they're listed under the correct groups! I've even gone as far as looking to see if they were listed in the DB — where I found them sitting comfortably in the right place. After the lines of code mentioned above, I placed an echo to spit out what the permissions actually read. They say "n". I'm not sure what the deal is. If the correct permissions are assigned to the correct groups, and I can clearly see that everything's in order in the DB, then... ??? I've posted another request for help in the Tiki Arch/Install forum with more detail at http://tikiwiki.org//tiki-view_forum_thread.php?forumId=6&comments_parentId=12518 .

I've set tiki_p_download permissions for my group of admins and a couple of other groups, I've unset tiki_p_download permissions and set tiki_p_admin_file_galleries for my groups, and I've set both at the same time — I've even just set all file-related permissions for all groups — I still get the "You can not download files" message with every user.

Any ideas?

-Patrick