mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 20:48:23 +08:00
Add permission check for open manage user modal and experiment actions dropdown [SCI-5382] (#3073)
This commit is contained in:
parent
8fbdfa28d5
commit
8533e54adb
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@
|
|||
</a>
|
||||
<% end %>
|
||||
|
||||
<% if project.active? %>
|
||||
<% if can_manage_project?(project) %>
|
||||
<%= link_to project_users_edit_path(project),
|
||||
class: 'manage-users-link',
|
||||
remote: true,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
data-canvas-link="<%= canvas_experiment_url(experiment) %>"
|
||||
>
|
||||
<div class="panel-heading">
|
||||
<% if @project.active? %>
|
||||
<% if can_manage_experiment?(experiment) %>
|
||||
<div class="dropdown pull-right">
|
||||
<button class="btn btn-link dropdown-toggle"
|
||||
type="button"
|
||||
|
|
Loading…
Reference in a new issue