I just noticed that the RSS function is publishing the unapproved news. How to stop this from happening?
Using: 2.5
if (!$is_logged_in or $is_logged_in and $member['level'] == 4){
$where[] = 'hidden = 0';
$where[] = 'and';
} if (!$is_logged_in or $is_logged_in and $member['level'] >= 1){
$where[] = 'hidden = 0';
$where[] = 'and';
}FI-DD wrote:I just tested it and it's exactly as I thought. Nobody sees the unapproved news in the RSS feed but those who are logged in.
And to let nobody see them (even those who are logged in) please change the code as I told you in the post above.
It perfectly worked for me.
Users browsing this forum: No registered users and 0 guests