From 5cd7d2fb114dfe1dc937bea813e185dcb2af3c3d Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Thu, 24 Aug 2023 13:03:10 +0400 Subject: [PATCH] changed team management logic --- app/views/projects/index/_project_actions_dropdown.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/index/_project_actions_dropdown.html.erb b/app/views/projects/index/_project_actions_dropdown.html.erb index 2d7c949fe..def9b3236 100644 --- a/app/views/projects/index/_project_actions_dropdown.html.erb +++ b/app/views/projects/index/_project_actions_dropdown.html.erb @@ -1,5 +1,5 @@ <% project_form = nil - unassigned_team_owner = can_manage_team?(current_user.current_team) && !can_read_project?(project) + unassigned_team_owner = can_manage_team?(project.team) && !can_read_project?(project) %> <%= form_for project, format: :json, method: :put, remote: true, html: { id: "edit-project-dropdown-form-#{project.id}" } do |f| %>