diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 9498259b5..c23c347f1 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -27,7 +27,7 @@ class RepositoriesController < ApplicationController def index respond_to do |format| format.html do - render 'empty_index' if @repositories.blank? + render 'empty_index' if Repository.accessible_by_teams(current_team).blank? end format.json do render json: prepare_repositories_datatable(@repositories, current_team, params)