Filter on published in Comment_Controller::_index()

This commit is contained in:
Tim Almdal
2008-12-29 22:59:44 +00:00
parent 6ab195854d
commit f5136051c9
+1
View File
@@ -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();