1
jcoulter
PD-Downloads: Setting File Permissions
  • 2005/5/18 19:30

  • jcoulter

  • Just popping in

  • Posts: 21

  • Since: 2005/5/18


Have run across something I can't seem to figure out. When a file is uploaded, it automatically sets File Permissions to Webmasters and Registered Users ... which isn't a problem. However, I have set up two additional user groups and PD-Downloads does NOT automatically set permissions for them ... which IS a problem.

I have looked everywhere Groups, Blocks, etc and can not find where I can automatically set these permissions when a file is uploaded. I want file to be immediately available to EVERYONE (except Anonymous) once the file has been uploaded.

Thanks!
Jon

2
jcoulter
Re: PD-Downloads: Setting File Permissions
  • 2005/5/19 22:13

  • jcoulter

  • Just popping in

  • Posts: 21

  • Since: 2005/5/18


Ok, I wasted several hours of my time running this down. The problem is with PD-Download itself. It is hard-coded to set permissions for group IDs 1 and 2 only.

Take a look at line #115 in submit.php

$groups = array(12);


I changed it to the below temporarily until I have the chance to rewrite the code to search for the appropriate groups.

$groups = array(1245);

3
LazyBadger
Re: PD-Downloads: Setting File Permissions

1/ Upload files in module's admin - all groups will be selected
2/ Usually members of additional groups still are "Registered users", thus - can't see problem with only 2 groups

Login

Who's Online

306 user(s) are online (267 user(s) are browsing Support Forums)


Members: 0


Guests: 306


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits