mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Some permission fixes.
This commit is contained in:
parent
a21343a819
commit
e5799ee6dc
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
<% provide(:head_title, t("projects.index.head_title")) %>
|
<% provide(:head_title, t("projects.index.head_title")) %>
|
||||||
|
|
||||||
<% if can_create_projects?(team) %>
|
<% if can_create_projects?(current_team) %>
|
||||||
<!-- New project modal -->
|
<!-- New project modal -->
|
||||||
<div class="modal" id="new-project-modal" tabindex="-1" role="dialog" aria-labelledby="new-project-modal-label">
|
<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| %>
|
<%= bootstrap_form_for @project, remote: true do |f| %>
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if can_update_project?(project) %>
|
<% if can_update_project?(@project) %>
|
||||||
<!-- Edit project modal -->
|
<!-- Edit project modal -->
|
||||||
<div class="modal" id="edit-project-modal" tabindex="-1" role="dialog" aria-labelledby="edit-project-modal-label">
|
<div class="modal" id="edit-project-modal" tabindex="-1" role="dialog" aria-labelledby="edit-project-modal-label">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
data-project-users-tab-url="<%= url_for project_user_projects_path(project_id: project.id, format: :json) %>">
|
data-project-users-tab-url="<%= url_for project_user_projects_path(project_id: project.id, format: :json) %>">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
|
||||||
<% if can_update_project?(project) %>
|
<% if can_update_project?(@project) %>
|
||||||
<div class="dropdown pull-right">
|
<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">
|
<button class="btn btn-link dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue