Pavel Bezdienezhnykh
unread,Nov 13, 2016, 5:14:39 PM11/13/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joomla! General Development
Hello.
Few weeks ago I mentioned that on my joomla 3.5 site there are unpublished articles that are visible for everyone.
I know that I can see them when I'm logged in as admin, but that articles steel visible for other user (and in private browsing mode or at other devices).
After some investigations I have found that in
www/components/com_content/models/articles.php
in
function getListQuery()
there is a line
// Filter by published state
$published = $this->getState('filter.published');
and this call returns list with values 0,1,2
so unpublished items can be selected by this query.
$query->where($publishedWhere . ' IN (' . $published . ')');
I'm not so good in deep understanding of joomla and can't find the place and cause where and why this values are set to 'filter.published' property.
May be someone can help me with this issue?
Thanks in advice,
Pavel.