Hi Gents,
It seems to be an issue in module blog at Elgg Rel. 1.8.11.
The blog entries with status=draft are not shown when the container is a group. I think that the issue is at line 105 of lib/blog.php file.
// show all posts for admin or users looking at their own blogs
// show only published posts for other users.
$show_only_published = true;
if ($current_user) {
if (($current_user->guid == $container_guid) || $current_user->isAdmin()) { <---- What about Groups ???
$show_only_published = false;
}
}
if ($show_only_published) {
$options['metadata_name_value_pairs'] = array(
array('name' => 'status', 'value' => 'published'),
);
}
$list = elgg_list_entities_from_metadata($options);
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- klermór ⚓@klermor
klermór ⚓ - 0 likes
- ura soul@tunist
ura soul - 0 likes
WebRep Overall rating This site has no rating (not enough votes)
- Matt Beckett@Beck24
Matt Beckett - 0 likes
You must log in to post replies.I have the same problem with a Elgg 1.8.12
a way of viewing 'drafts only' would also assist.
i haven't yet found a url that exits that allows that.. though i haven't looked through the code yet
Please create a trac ticket for it if one doesn't already exist.
http://trac.elgg.org