mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-06 15:41:33 +00: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:
parent
514d9bad9e
commit
d42397e9a7
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user