--- subversion_adapter.rb.orig	2010-04-06 17:41:03.661254163 +0200
+++ subversion_adapter.rb	2010-04-06 17:41:31.933377253 +0200
@@ -50,6 +50,14 @@
         def info
           cmd = "#{SVN_BIN} info --xml #{target('')}"
           cmd << credentials_string
+
+req_project_id= Repository.find_by_url(url).project_id
+req_user_id= User.current.id
+req_result= Member.find_by_sql("SELECT id FROM members WHERE project_id=#{req_project_id} AND user_id=#{req_user_id}")
+if not Project.find(req_project_id).is_public and req_result.length == 0
+  return nil
+end
+
           info = nil
           shellout(cmd) do |io|
             begin
@@ -79,6 +87,13 @@
           entries = Entries.new
           cmd = "#{SVN_BIN} list --xml #{target(URI.escape(path))}@#{identifier}"
           cmd << credentials_string
+
+req_project_id= Repository.find_by_url(url).project_id
+req_user_id= User.current.id
+req_result= Member.find_by_sql("SELECT id FROM members WHERE project_id=#{req_project_id} AND user_id=#{req_user_id}")
+if not Project.find(req_project_id).is_public and req_result.length == 0
+  return nil
+end
           shellout(cmd) do |io|
             output = io.read
             begin
@@ -225,7 +240,7 @@
           str = ''
           str << " --username #{shell_quote(@login)}" unless @login.blank?
           str << " --password #{shell_quote(@password)}" unless @login.blank? || @password.blank?
-          str << " --no-auth-cache --non-interactive"
+          str << " --no-auth-cache --non-interactive --trust-server-cert "
           str
         end
       end
