mirror of
https://github.com/redmine/redmine.git
synced 2026-07-05 06:07:53 +02:00
Don't load Member#user, use #principal instead.
git-svn-id: http://svn.redmine.org/redmine/trunk@16117 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user