Skip to content
Snippets Groups Projects
Commit 560985b0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fixed link_to_member

parent b096ee32
No related branches found
No related tags found
2 merge requests!2940Expanding repos and hooks paths in settings,!2770Capistrano deploy
Loading
Loading
@@ -43,7 +43,7 @@ module ProjectsHelper
tm = project.team_member_by_id(author)
 
if tm
link_to author_html, project_team_member_path(project, tm), class: "author_link"
link_to author_html, project_team_member_path(project, tm.user_username), class: "author_link"
else
author_html
end.html_safe
Loading
Loading
Loading
Loading
@@ -33,7 +33,7 @@ class UsersProject < ActiveRecord::Base
validates :project_access, inclusion: { in: [GUEST, REPORTER, DEVELOPER, MASTER] }, presence: true
validates :project, presence: true
 
delegate :name, :email, to: :user, prefix: true
delegate :name, :username, :email, to: :user, prefix: true
 
scope :guests, where(project_access: GUEST)
scope :reporters, where(project_access: REPORTER)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment