# HG changeset patch # User luisf # Date 1330616130 0 # Node ID b502ad91d302c2aa3c509d30abb7901b4ea3bf32 # Parent 5e80956cc792ae026e97fced5330067867bf438a Fixes the deprecated use of visible_by. diff -r 5e80956cc792 -r b502ad91d302 app/models/project.rb --- a/app/models/project.rb Mon Feb 27 13:53:18 2012 +0000 +++ b/app/models/project.rb Thu Mar 01 15:35:30 2012 +0000 @@ -135,7 +135,7 @@ end def self.root_visible_by(user=nil) - return "#{Project.table_name}.parent_id IS NULL AND " + visible_by(user) + return "#{Project.table_name}.parent_id IS NULL AND " + visible_condition(user) end # Returns a SQL conditions string used to find all projects for which +user+ has the given +permission+