TinyPortal

Development => Resources => Modules => Topic started by: mimmolo on July 22, 2007, 03:21:23 PM

Title: Download module. Authorization based on Users?
Post by: mimmolo on July 22, 2007, 03:21:23 PM
Hi
I'd like to use an Authorization based on Users instead of groups.
I would have the possibility to permit the download of a certain file only to some users, but users can be in different group...
Is it possible?
Title: Re: Download module. Authorization based on Users?
Post by: G6Cad on July 22, 2007, 05:38:05 PM
In the current TP version there is no permissions avaliable beside upload, manage downloads. So any of what you seek to have right now is not possible until future release/es.
Title: Re: Download module. Authorization based on Users?
Post by: mimmolo on July 22, 2007, 06:45:29 PM
I wasn't talking about tp permission itself...
I'm referring to the download of a file posted in the download module. Actually the authorization is checked by the smf permission system.. in tp you have to check some group you have created in smf to grant download privelege to the relative user...
my request is: it's possible to permit download only to certain user without regard to their group?
there is a mod or some tips to do it with little coding?


thank you!
Title: Re: Download module. Authorization based on Users?
Post by: G6Cad on July 22, 2007, 08:00:35 PM
And the answer is no even there. The only permissions in the download section is by group at this time in the TP stage
Title: Re: Download module. Authorization based on Users?
Post by: feline on July 22, 2007, 10:38:55 PM
Quote from: mimmolo on July 22, 2007, 06:45:29 PM
I wasn't talking about tp permission itself...
I'm referring to the download of a file posted in the download module. Actually the authorization is checked by the smf permission system.. in tp you have to check some group you have created in smf to grant download privelege to the relative user...
my request is: it's possible to permit download only to certain user without regard to their group?
there is a mod or some tips to do it with little coding?
One of the Services of Feline Network (http://feline-networks.com) is php programming.
But .. it's not for free ...

Fel
Title: Re: Download module. Authorization based on Users?
Post by: Ianedres on July 23, 2007, 03:18:06 AM
Quote from: mimmolo on July 22, 2007, 06:45:29 PM
my request is: it's possible to permit download only to certain user without regard to their group?
there is a mod or some tips to do it with little coding?

Perhaps looking at the user number and comparing it to a list of accepted users?

I could see this being set up in a PHP article that provides a link to a file if the user number is permitted; however, unless you move the file into a temporary directory prior to each download, the URL to the file could be distributed and thus no checking of who is accessing the file.

However, unless you're a small forum or otherwise automate the permitted user listing... would probably be too much of a headache.