Question
- TWiki version: cvs
- Perl version: 5.8
Has anyone got a patch to have attachments not be in pub/? Or at the least, a getfile equivalent that can be used for files in pub easily?
Reason is, I have a protected content server where the password protection allows all users in our domain to validate themselves, but only some of the users have read/write access to certain portions of twiki. I'm aware of the search issue.
Looks like getfile mostly does what is needed, but seemed like it would make sense to separate the files in that dir between truly-public data, such as the twiki icon and other not-associated-with-a-web files into a public/ dir, and have the rest of the files use a cgi to access them, similar to accessing old revisions, so that access controls can be checked.
Basically, I just wanted to ask if anyone else has done this already before I go and come up with a patch myself.
Answer