Alexander A. BORODIN wrote: > > I need for realize download possibility only for registered users. It's > based, IMHO, on two conditions: > - anonymous can't see active links to download file (only text, for > example) > - each link to download file must be unique ( something like > http://site.org/downloads/1syyhty5212344412) and live only short time > (like on file exchange servers). > The first is trivial (see "Checking for permissions" section here - http://plone.org/documentation/tutorial/manipulating-plone-objects-programmatically/tutorial-all-pages). And even this may not be needed (see at the bottom) The second is not necessary - you should set up your file objects permissions properly so they are not accessible by anon visitors. HINT: Assign a workflow to your File type. (yoursite/portal_workflow/manage_selectWorkflows), save and click "Update security settings" -- View this message in context: http://n2.nabble.com/Unique-download-links-for-registered-users-tp2937897p2938143.html Sent from the Product Developers mailing list archive at Nabble.com. _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
