From fac0c05a46358fbd6bc00ebd49aec066acec9961 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Mon, 20 Apr 2009 13:54:39 +0200 Subject: [PATCH] Hide private messages on start page. --- app/controllers/home_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 9ed5fca1..518c296e 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -8,7 +8,7 @@ class HomeController < ApplicationController @unaccepted_tasks = @current_user.unaccepted_tasks # task in next week @next_tasks = @current_user.next_tasks - @messages = Message.all :order => 'created_at DESC', :limit => 5 + @messages = Message.public.all :order => 'created_at DESC', :limit => 5 # count tasks with no responsible person # tasks for groups the current user is not a member are ignored tasks = Task.find(:all, :conditions => ["assigned = ? and done = ?", false, false])