this should fix undeletable blocks and layouts
This commit is contained in:
parent
ad07d48d3c
commit
c2ca2a09e7
@ -108,8 +108,9 @@ function blocks_content(&$a) {
|
|||||||
$editor = status_editor($a,$x);
|
$editor = status_editor($a,$x);
|
||||||
|
|
||||||
$r = q("select iid, sid, mid, title, body, mimetype, created, edited from item_id left join item on item_id.iid = item.id
|
$r = q("select iid, sid, mid, title, body, mimetype, created, edited from item_id left join item on item_id.iid = item.id
|
||||||
where item_id.uid = %d and service = 'BUILDBLOCK' order by item.created desc",
|
where item_id.uid = %d and service = 'BUILDBLOCK' and item_restrict = %d order by item.created desc",
|
||||||
intval($owner)
|
intval($owner),
|
||||||
|
intval(ITEM_BUILDBLOCK)
|
||||||
);
|
);
|
||||||
|
|
||||||
$pages = null;
|
$pages = null;
|
||||||
|
@ -135,8 +135,9 @@ function layouts_content(&$a) {
|
|||||||
$editor = status_editor($a,$x);
|
$editor = status_editor($a,$x);
|
||||||
|
|
||||||
$r = q("select iid, sid, mid, title, body, mimetype, created, edited from item_id left join item on item_id.iid = item.id
|
$r = q("select iid, sid, mid, title, body, mimetype, created, edited from item_id left join item on item_id.iid = item.id
|
||||||
where item_id.uid = %d and service = 'PDL' order by item.created desc",
|
where item_id.uid = %d and service = 'PDL' and item_restrict = %d order by item.created desc",
|
||||||
intval($owner)
|
intval($owner),
|
||||||
|
intval(ITEM_PDL)
|
||||||
);
|
);
|
||||||
|
|
||||||
$pages = null;
|
$pages = null;
|
||||||
|
Reference in New Issue
Block a user