Add permission check for open manage user modal and experiment actions dropdown [SCI-5382] (#3073)

This commit is contained in:
aignatov-bio 2021-01-12 12:16:33 +01:00 committed by GitHub
parent 8fbdfa28d5
commit 8533e54adb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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"