Loading...
 
Skip to main content

Architecture / Installation


You are viewing a reply to File Downloads, Permission, and 1.8.4

Re: File Downloads, Permission, and 1.8.4

Sylvie,

First off, thanks for your time. Yes, using phpMyAdmin, I can see that tiki_p_admin_file_galleries is listed with the correct group in the users_grouppermissions table. I'm not using the Registered group. With the way I am using tikiwiki (many groups across the U.S. — all with different needs, thus different permissions), I decided to give them all different names. But, it is true that I started all groups with the same permissions as Registered and changed them from there. What I'm saying is that no users in my setup belong to group "Registered". Is there something in the system that would make tikiwiki not work right if users didn't belong to the default Registered group? Does making another group with the same exact permissions, then assigning a user ONLY to that other group break certain tiki functions?

I ran into another similar problem when trying to get a file attached to a forum thread. The screen just went white! I figured out that a line of code in tiki-download_forum_attachment.php was telling my system to "die" if $tiki_p_forum_attach did not equal 'y' (at line 15). The similarity to my original problem with the file gallery is that, both as admin and a user from another group, $tiki_p_forum_attach was equal to 'n', even though the permission was set for both admin and the group the user belonged to. This struck me as VERY strange, because like the file download problem, everything was where it needed to be in the DB and in the perms list under groups. The strange part is that this permission had always been set for admin and groups, meaning that it couldn't have been a cache thing. Also, I tried setting individual perms for the forum and I got the same error — a blank screen caused by the call to "die".

After commenting out the if statement, viola, I was able to view and download fourm attachments.

The forum attachments problem is not my main area of concern, as I can prevent groups from the ability to see forums that aren't in their space. I am still very concerned with the file download problem from the file gallery. I just thought the above could help, because it deals with a similar permission recognition problem. Hope this helps.

Thanks again,

Patrick