Merge pull request #3177 from urbanrotnik/ur-sci-5514

Fix repository empty index show condition [SCI-5514]
This commit is contained in:
Miha Mencin 2021-02-22 10:56:02 +01:00 committed by GitHub
commit 63dd680385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)