Fix repository empty index show condition

This commit is contained in:
Urban Rotnik 2021-02-22 10:18:52 +01:00
parent 51a5a835ae
commit 42f8062fe0

View file

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