On Tuesday, January 22, 2013, Maik wrote:

> Hi group,
>
> I have made some posts that only authenticated users can see and I'd like
> to attach a simple txt file to one of those posts.
> If I upload a media file with the Media Silo 1.0.1<http://habariproject.org/>,
> then the file is available to everyone knowing the link, since it is
> directly served by the webserver without involving habari access-control
> mechanisms.
>
> Is the a way - any way - that uploaded / attached media has the same
> access restrictions as the posts they're in?
>
> As it's the most efficient thing to do, the recommended
server configuration for Habari causes static files to be served directly
by the web server; Habari isn't involved at all. It is possible to change
the server configuration, and with a plugin, do all static file processing
through PHP/Habari.

The hard bit would be matching the permissions on the file with the
permissions on a post. You could do something like append the post id to
the file name on upload, then check the permissions on the post when
requesting the file.

In short, possible but not trivial, and would require some programming.




-- 
Michael C. Harris
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to