Commit cda8a7be authored by Mario's avatar Mario Committed by Mario

do not overwrite $sql_extra


(cherry picked from commit 4706ff69)
parent ddbc3518
Pipeline #109097 passed with stage
in 12 minutes and 26 seconds
......@@ -181,7 +181,7 @@ class Oep extends \Zotlabs\Web\Controller {
dbesc($res)
);
if($r) {
$sql_extra = "and item.id = " . intval($r[0]['iid']) . " ";
$sql_extra .= " and item.id = " . intval($r[0]['iid']) . " ";
}
else {
return $ret;
......@@ -255,6 +255,8 @@ class Oep extends \Zotlabs\Web\Controller {
if(! $channel)
return $ret;
hz_syslog($nick);
if(! perm_is_allowed($channel['channel_id'],get_observer_hash(),'view_pages'))
return $ret;
......@@ -265,7 +267,7 @@ class Oep extends \Zotlabs\Web\Controller {
dbesc($res)
);
if($r) {
$sql_extra = "and item.id = " . intval($r[0]['iid']) . " ";
$sql_extra .= " and item.id = " . intval($r[0]['iid']) . " ";
}
else {
return $ret;
......
Markdown is supported
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