changeset 913:b502ad91d302 cannam_integration

Fixes the deprecated use of visible_by.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 01 Mar 2012 15:35:30 +0000
parents 5e80956cc792
children af7a3f452778
files app/models/project.rb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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+