summaryrefslogtreecommitdiffstats
path: root/app/models/message.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/message.rb')
-rw-r--r--app/models/message.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/message.rb b/app/models/message.rb
index a5540d953..dee5a5b62 100644
--- a/app/models/message.rb
+++ b/app/models/message.rb
@@ -50,7 +50,6 @@ class Message < ActiveRecord::Base
scope :visible, lambda {|*args|
joins(:board => :project).
- references(:board => :project).
where(Project.allowed_to_condition(args.shift || User.current, :view_messages, *args))
}