From c82082d2bbb00294d62330d577dcdbc9ec6b9d1c Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 13 May 2015 16:27:04 -0700 Subject: restrict webpage list to undeleted items --- mod/page.php | 1 - mod/webpages.php | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/page.php b/mod/page.php index b80982ae1..25b4d8888 100644 --- a/mod/page.php +++ b/mod/page.php @@ -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 diff --git a/mod/webpages.php b/mod/webpages.php index 859c93fde..62abfb34a 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -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; -- cgit v1.2.3