restrict webpage list to undeleted items
This commit is contained in:
parent
d6f98e6511
commit
c82082d2bb
@ -66,7 +66,6 @@ function page_init(&$a) {
|
|||||||
intval(ITEM_WEBPAGE),
|
intval(ITEM_WEBPAGE),
|
||||||
intval(ITEM_PDL)
|
intval(ITEM_PDL)
|
||||||
);
|
);
|
||||||
|
|
||||||
if(! $r) {
|
if(! $r) {
|
||||||
|
|
||||||
// Check again with no permissions clause to see if it is a permissions issue
|
// Check again with no permissions clause to see if it is a permissions issue
|
||||||
|
@ -133,8 +133,9 @@ function webpages_content(&$a) {
|
|||||||
$sql_extra = item_permissions_sql($owner);
|
$sql_extra = item_permissions_sql($owner);
|
||||||
|
|
||||||
$r = q("select * from item_id left join item on item_id.iid = item.id
|
$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",
|
where item_id.uid = %d and service = 'WEBPAGE' and item_restrict = %d $sql_extra order by item.created desc",
|
||||||
intval($owner)
|
intval($owner),
|
||||||
|
intval(ITEM_WEBPAGE)
|
||||||
);
|
);
|
||||||
|
|
||||||
$pages = null;
|
$pages = null;
|
||||||
|
Reference in New Issue
Block a user