Sackgesicht VIP
Total posts: 1,636
20 Aug 2013 10:03

"Who can download" accesslevel in upload fields like "upload", "paytodownload" is not working.

Last Modified: 02 Mar 2014


Sackgesicht VIP
Total posts: 1,636
20 Aug 2013 10:33

i made some modifications in /controllers/files.php , inserting the following block to fix it.

Maybe there is a more elegant solution and even a better error message ...


Sackgesicht VIP
Total posts: 1,636
20 Aug 2013 20:39

When using the category parameter "Inherits category access level" it should actually only allow the download to users who have the proper access rights.


Sergey
Total posts: 13,748
22 Aug 2013 06:54

I can see the code in library/php/fields/cobaltuploads.php line 197. This parameter checks if user can download this file.

And I checked this parameter works well. At least in uploads field.


Sackgesicht VIP
Total posts: 1,636
22 Aug 2013 07:19

I used it in paytodownload field .. I set it to "Registered"... I copied the link. Logged out and was still able to download the file as "public" user. After applying the fix , it was working as expected (at least in the "paytodownload" field)


Sergey
Total posts: 13,748
23 Aug 2013 02:13

Fixed for paytodownload.

Powered by Cobalt