Some permission fixes.

This commit is contained in:
Matej Zrimšek 2018-01-25 18:24:28 +01:00
parent a21343a819
commit e5799ee6dc
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
<% provide(:head_title, t("projects.index.head_title")) %>
<% if can_create_projects?(team) %>
<% if can_create_projects?(current_team) %>
<!-- New project modal -->
<div class="modal" id="new-project-modal" tabindex="-1" role="dialog" aria-labelledby="new-project-modal-label">
<%= bootstrap_form_for @project, remote: true do |f| %>
@ -23,7 +23,7 @@
</div>
<% end %>
<% if can_update_project?(project) %>
<% if can_update_project?(@project) %>
<!-- Edit project modal -->
<div class="modal" id="edit-project-modal" tabindex="-1" role="dialog" aria-labelledby="edit-project-modal-label">
<div class="modal-dialog" role="document">

View file

@ -2,7 +2,7 @@
data-project-users-tab-url="<%= url_for project_user_projects_path(project_id: project.id, format: :json) %>">
<div class="panel-heading">
<% if can_update_project?(project) %>
<% if can_update_project?(@project) %>
<div class="dropdown pull-right">
<button class="btn btn-link dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="caret"></span>