mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Fix repository empty index show condition
This commit is contained in:
parent
51a5a835ae
commit
42f8062fe0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue