Hide private messages on start page.

This commit is contained in:
Benjamin Meichsner 2009-04-20 13:54:39 +02:00
parent c6187ebade
commit fac0c05a46

View file

@ -8,7 +8,7 @@ class HomeController < ApplicationController
@unaccepted_tasks = @current_user.unaccepted_tasks @unaccepted_tasks = @current_user.unaccepted_tasks
# task in next week # task in next week
@next_tasks = @current_user.next_tasks @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 # count tasks with no responsible person
# tasks for groups the current user is not a member are ignored # tasks for groups the current user is not a member are ignored
tasks = Task.find(:all, :conditions => ["assigned = ? and done = ?", false, false]) tasks = Task.find(:all, :conditions => ["assigned = ? and done = ?", false, false])