displays appropriate permission messages in accepting phase

This commit is contained in:
rgarcia
2017-01-15 20:37:44 +01:00
parent 69c043a886
commit fa9cb00c65
2 changed files with 38 additions and 1 deletions

View File

@@ -14,7 +14,7 @@
<%= t("budgets.phase.#{@budget.phase}") %>
</p>
<% if can?(:create, Budget::Investment.new(budget: @budget))%>
<% if @budget.accepting? %>
<% if current_user %>
<% if current_user.level_two_or_three_verified? %>
<%= link_to t("budgets.investments.index.sidebar.create"), new_budget_investment_path(@budget), class: "button margin-top expanded" %>