diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb
index 070312944..b8c82eec7 100644
--- a/app/views/projects/index.html.erb
+++ b/app/views/projects/index.html.erb
@@ -1,6 +1,6 @@
<% provide(:head_title, t("projects.index.head_title")) %>
-<% if can_create_projects?(team) %>
+<% if can_create_projects?(current_team) %>
<%= bootstrap_form_for @project, remote: true do |f| %>
@@ -23,7 +23,7 @@
<% end %>
-<% if can_update_project?(project) %>
+<% if can_update_project?(@project) %>
diff --git a/app/views/projects/index/_project.html.erb b/app/views/projects/index/_project.html.erb
index ed3c5e878..21dcb74ef 100644
--- a/app/views/projects/index/_project.html.erb
+++ b/app/views/projects/index/_project.html.erb
@@ -2,7 +2,7 @@
data-project-users-tab-url="<%= url_for project_user_projects_path(project_id: project.id, format: :json) %>">
- <% if can_update_project?(project) %>
+ <% if can_update_project?(@project) %>