Hide private messages on start page.
This commit is contained in:
parent
c6187ebade
commit
fac0c05a46
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue