Commit 55149e68 authored by jplang's avatar jplang

Don't load Member#user, use #principal instead.

git-svn-id: https://svn.redmine.org/redmine/trunk@16117 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 23d51520
......@@ -135,7 +135,7 @@ class Member < ActiveRecord::Base
if principal.is_a?(Group)
!user.nil? && user.groups.include?(principal)
else
self.user == user
self.principal == user
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment