TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 17, 2024, 04:54:27 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,253
  • Total Topics: 21,225
  • Online today: 149
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 109
  • Total: 109

Download module. Authorization based on Users?

Started by mimmolo, July 22, 2007, 03:21:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mimmolo

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?

G6Cad

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.

mimmolo

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!

G6Cad

And the answer is no even there. The only permissions in the download section is by group at this time in the TP stage

feline

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 is php programming.
But .. it's not for free ...

Fel

Ianedres

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.