Revision 913:b502ad91d302 app

View differences:

app/models/project.rb
135 135
  end
136 136

  
137 137
  def self.root_visible_by(user=nil)
138
    return "#{Project.table_name}.parent_id IS NULL AND " + visible_by(user)
138
    return "#{Project.table_name}.parent_id IS NULL AND " + visible_condition(user)
139 139
  end
140 140
  
141 141
  # Returns a SQL conditions string used to find all projects for which +user+ has the given +permission+

Also available in: Unified diff