From f5136051c902f88f9800697d48b35e2e908a5c22 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 29 Dec 2008 22:59:44 +0000 Subject: Filter on published in Comment_Controller::_index() --- modules/comment/controllers/comments.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/comment/controllers/comments.php') diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index e4eff6a6..fcef1832 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -30,6 +30,7 @@ class Comments_Controller extends REST_Controller { $comments = ORM::factory("comment") ->where("item_id", $item->id) + ->where("published", 1) ->orderby("created", "desc") ->find_all(); -- cgit v1.2.3