git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11606
e93f8b46-1217-0410-a6f0-
8f06a7374b81
# Return true if the user is a member of project
def member_of?(project)
- roles_for_project(project).any? {|role| role.member?}
+ projects.to_a.include?(project)
end
# Returns a hash of user's projects grouped by roles
UserPreference.new(:user => self)
end
+ def member_of?(project)
+ false
+ end
+
# Anonymous user can not be destroyed
def destroy
false