From b8f7cc9ee708f747a8581bde980fd160b97ddacd Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Wed, 25 Mar 2020 15:31:17 +0800 Subject: [PATCH] FIX bug --- app/views/repositories/show.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/repositories/show.json.jbuilder b/app/views/repositories/show.json.jbuilder index 676b28810..3c5f53aea 100644 --- a/app/views/repositories/show.json.jbuilder +++ b/app/views/repositories/show.json.jbuilder @@ -9,7 +9,7 @@ json.forked_count @project.forked_count json.watchers_count @project.watchers_count json.branches_count @branches_count json.commits_count @commits_count -json.permission render_edit_project_permission(current_user, @project) +json.permission render_edit_project_permission(current_user, @project) if current_user json.mirror_url @project&.repository.mirror_url json.watched current_user&.watched?(@project) json.praised current_user&.liked?(@project)