restrict webpage list to undeleted items

This commit is contained in:
redmatrix 2015-05-13 16:27:04 -07:00
parent d6f98e6511
commit c82082d2bb
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,6 @@ function page_init(&$a) {
intval(ITEM_WEBPAGE),
intval(ITEM_PDL)
);
if(! $r) {
// Check again with no permissions clause to see if it is a permissions issue

View file

@ -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;