mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
Fix shared inventory in task dropdown (#1993)
This commit is contained in:
parent
2cf7f52f15
commit
b6661682ad
2 changed files with 1 additions and 2 deletions
|
@ -301,7 +301,6 @@ class MyModulesController < ApplicationController
|
|||
def repository
|
||||
@repository = Repository.find_by_id(params[:repository_id])
|
||||
render_403 if @repository.nil? || !can_read_repository?(@repository)
|
||||
current_team_switch(@repository.team)
|
||||
end
|
||||
|
||||
def archive
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% @my_module.experiment.project.team.repositories.order(created_at: :asc).each do |repository| %>
|
||||
<% Repository.accessible_by_teams(current_team).order(created_at: :asc).each do |repository| %>
|
||||
<li>
|
||||
<a class="dropdown-item <%= "active-item" if @repository == repository %> help_tooltips"
|
||||
data-tooltiplink="<%= I18n.t('tooltips.link.protocol.inventories') %>"
|
||||
|
|
Loading…
Reference in a new issue