diff options
Diffstat (limited to 'mod/channel.php')
-rw-r--r-- | mod/channel.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mod/channel.php b/mod/channel.php index dac4ba2bf..6e82eb1e7 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -177,11 +177,14 @@ function channel_content(&$a, $update = 0, $load = false) { if($load || ($_COOKIE['jsAvailable'] != 1)) { if ($mid) { - $r = q("SELECT parent AS item_id from item where mid = '%s' limit 1", - dbesc($mid) + $r = q("SELECT parent AS item_id from item where mid = '%s' and uid = %d AND item_restrict = 0 + AND (item_flags & %d) $sql_extra limit 1", + dbesc($mid), + intval($a->profile['profile_uid']), + intval(ITEM_WALL) ); if (! $r) { - notice( t('Item not found.') . EOL); + notice( t('Permission denied.') . EOL); } } else { |