From 42f8062fe0d805b58e95f3bdd48491f8774ffa5b Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Mon, 22 Feb 2021 10:18:52 +0100 Subject: [PATCH] Fix repository empty index show condition --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)