mod display: if we have a local channel we should still be allowed to see sys channel items

This commit is contained in:
Mario Vavti 2017-10-06 16:51:39 +02:00
parent e15307747f
commit 27f8320353

View File

@ -203,11 +203,12 @@ class Display extends \Zotlabs\Web\Controller {
if(local_channel()) {
$r = q("SELECT item.id as item_id from item
WHERE uid = %d
WHERE (uid = %d or uid = %d)
and mid = '%s'
$item_normal
limit 1",
intval(local_channel()),
intval($sysid),
dbesc($target_item['parent_mid'])
);
if($r) {