From e5799ee6dcb982ead8d0499e9971bd799deed542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Zrim=C5=A1ek?= Date: Thu, 25 Jan 2018 18:24:28 +0100 Subject: [PATCH] Some permission fixes. --- app/views/projects/index.html.erb | 4 ++-- app/views/projects/index/_project.html.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) %> <% end %> -<% if can_update_project?(project) %> +<% if can_update_project?(@project) %>