aboutsummaryrefslogtreecommitdiffstats
path: root/mod/blocks.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blocks.php')
-rw-r--r--mod/blocks.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/blocks.php b/mod/blocks.php
index 56da9caf7..11e7d4a30 100644
--- a/mod/blocks.php
+++ b/mod/blocks.php
@@ -108,8 +108,9 @@ function blocks_content(&$a) {
$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
- where item_id.uid = %d and service = 'BUILDBLOCK' order by item.created desc",
- intval($owner)
+ where item_id.uid = %d and service = 'BUILDBLOCK' and item_restrict = %d order by item.created desc",
+ intval($owner),
+ intval(ITEM_BUILDBLOCK)
);
$pages = null;