fetchPrintEntries vs. protected categories

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

fetchPrintEntries vs. protected categories

Post by yellowled »

Let's assume I'm building a site with s9y which uses "protected" categories which can only be read by users which are logged in.

If I wanted to use serendipity_fetchPrintEntries to pull articles from a "protected" category in order to use a seperate .tpl file (template="foobar.tpl") to display those, would category restrictions still work?

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: fetchPrintEntries vs. protected categories

Post by garvinhicking »

Hi!

Yes, those category restrictions would still work. Even if you supply the category id, it only shows articles that the currently logged in user is allowed to read.

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