Adds links to the user page on various views.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1674 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-07-16 19:33:15 +00:00
parent aef25a5e32
commit 795220a1e6
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -201,6 +201,10 @@ class User < ActiveRecord::Base
true
end
def anonymous?
!logged?
end
# Return user's role for project
def role_for_project(project)
# No role on archived projects