Revert "[issue #195] Removed leave button from groups projects."

This reverts commit 014fd706db9894f09cbffa8372009290324dbfe8.
This commit is contained in:
George Vinogradov 2012-03-29 00:46:42 +04:00
parent 869fa0da31
commit bac8f0a285
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ json.project do |proj|
proj.role t("layout.collaborators.role_names.#{project.relations.by_user_through_groups(current_user).first.role}").force_encoding(Encoding::UTF_8)
proj.leave_link remove_user_project_path(project) unless project.owner == current_user or project.owner.class == Group
proj.leave_link remove_user_project_path(project) unless project.owner == current_user
proj.owner do |owner|
owner.name project.owner.uname