restrict webpage list to undeleted items
This commit is contained in:
@@ -133,8 +133,9 @@ function webpages_content(&$a) {
|
||||
$sql_extra = item_permissions_sql($owner);
|
||||
|
||||
$r = q("select * from item_id left join item on item_id.iid = item.id
|
||||
where item_id.uid = %d and service = 'WEBPAGE' $sql_extra order by item.created desc",
|
||||
intval($owner)
|
||||
where item_id.uid = %d and service = 'WEBPAGE' and item_restrict = %d $sql_extra order by item.created desc",
|
||||
intval($owner),
|
||||
intval(ITEM_WEBPAGE)
|
||||
);
|
||||
|
||||
$pages = null;
|
||||
|
Reference in New Issue
Block a user