From 11535bc45984c8991284d302a5cd9867e30e7f53 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Thu, 21 May 2020 18:02:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9repositories=E7=9A=84show?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 354a0bc78..7da7755bd 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -4,7 +4,7 @@ class RepositoriesController < ApplicationController before_action :require_login, only: %i[edit update create_file update_file delete_file sync_mirror] before_action :find_project, except: :tags before_action :authorizate!, except: [:sync_mirror, :tags] - before_action :find_repository, only: %i[sync_mirror tags show] + before_action :find_repository, only: %i[sync_mirror tags] before_action :authorizate_user_can_edit_project!, only: %i[sync_mirror] def show