Fix shared inventory in task dropdown (#1993)

This commit is contained in:
aignatov-bio 2019-08-19 13:56:02 +02:00 committed by GitHub
parent 2cf7f52f15
commit b6661682ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

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

View file

@ -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') %>"