Commit d899c17a authored by Nigel McNie's avatar Nigel McNie
Browse files

[UPSTREAM] Show users their own private posts on other peoples' walls.

parent 4743a34b
......@@ -154,7 +154,7 @@ class PluginBlocktypeWall extends SystemBlocktype {
JOIN {usr} u ON bwp.from = u.id
WHERE bwp.instance = ? AND u.deleted = 0
' . (($owner != $userid) ? '
AND bwp.private = 0 ' : '' ) . '
AND (bwp.private = 0 OR bwp.from = ' . db_quote($userid) . ') ' : '' ) . '
ORDER BY bwp.postdate DESC
';
$params = array($instance->get('id'));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment