private Media only for Authors

Creating and modifying plugins.
Post Reply
diemutter
Regular
Posts: 5
Joined: Wed Jul 19, 2006 11:04 am

private Media only for Authors

Post by diemutter »

Hey everyone,

I am trying to find a way how to upload pictures only accessible for Authors.
If I for example create a new folder in the Media library names "INTERN", I want all those pictures in there only to be accessible for logged in Authors.

(I know I can write a Threat only for authors and publish pictures there from the "INTERN" folder. But also logged out, I will be able to view the data by entering the direct link in my browser.
So in that case, people would actually be able to pass links.)

I would rather not want to add a new .htaccess only to view those pictures!

Anyone??? Please help!?

Extra: Also, I have installed the news-sidebar-pluginn, which shows the latest threats.
But, also Threats only viewable tor Authors will be shown there, if not logged in. Is there any way to hide titles from this sidebar pluginn, which are written only for Authors??? :roll:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: private Media only for Authors

Post by garvinhicking »

Hi!

First, you must use Serendipity version 1.1 at least.

When you click on "Manage directories" you can assign read and write privileges to each of your created subdirectories. Then the folders will only be visibile to thouse author groups you selected.

Note that if a person knows the URL to a "hidden" image, he can still call it via HTTP, as the files are stored there simply.

Serendipity would need to store images in the database to only allow download by authenticated users. That's quite inperformant and not in the scope of Serendipity, I'm sorry.
Extra: Also, I have installed the news-sidebar-pluginn, which shows the latest threats.
But, also Threats only viewable tor Authors will be shown there, if not logged in. Is there any way to hide titles from this sidebar pluginn, which are written only for Authors??? :roll:
That would require a query that evaluates author privileges, which is quite database intense, and would slow down the recent-entries plugin a lot. It could be added to the plugin, of course, but I can't really suggest this.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ostfriese2004
Regular
Posts: 76
Joined: Tue Feb 13, 2007 11:12 pm

Post by ostfriese2004 »

I am not sure about this. I also tried to hide a folder with privileges, but the folder was still viewable for normal website visitors in the media library of my gallery (drop-down-list).
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
ostfriese2004 wrote:I am not sure about this. I also tried to hide a folder with privileges, but the folder was still viewable for normal website visitors in the media library of my gallery (drop-down-list).
That's something different alltogether - the media manager popup is core functionality, the media library is a plugin that needs to support fetching privileges.

I don'T know if the plugin supports it, you at least would need serendipity 1.1 and a recent version of the plugin and check its configuration panel for options.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply