fix webpage perms

This commit is contained in:
Mario Vavti
2015-04-22 12:00:15 +02:00
parent b4dff3a9ff
commit 9e490d022b
3 changed files with 12 additions and 3 deletions

View File

@@ -131,8 +131,10 @@ function webpages_content(&$a) {
// so just list titles and an edit link.
/** @TODO - this should be replaced with pagelist_widget */
$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' order by item.created desc",
where item_id.uid = %d and service = 'WEBPAGE' $sql_extra order by item.created desc",
intval($owner)
);