Skip to content

Commit

Permalink
Turns out that restriction is kind of necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Beattie committed Jun 12, 2009
1 parent 9edaf65 commit 908c361
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/schedules_controller.rb
Expand Up @@ -569,6 +569,7 @@ def find_users_and_projects
@user = User.find(params[:user_id]) if params[:user_id]
@focus = "users" if @project.nil? && @user.nil?
@projects = visible_projects.sort
@projects = @projects & @user.projects unless @user.nil?
@projects = @projects & [@project] unless @project.nil?
@users = visible_users(@projects.collect(&:members).flatten.uniq)
@users = @users & [@user] unless @user.nil?
Expand Down

0 comments on commit 908c361

Please sign in to comment.