From 9f4c2bd673e0ac3702b23743ef7b387fb49e59ec Mon Sep 17 00:00:00 2001 From: jasder Date: Tue, 9 Feb 2021 11:48:05 +0800 Subject: [PATCH] FIX repo setting api for forbidden --- app/controllers/repositories_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 7e708f5e1..519a63bd9 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -88,6 +88,7 @@ class RepositoriesController < ApplicationController end def edit + return render_forbidden if !@project.manager?(current_user) end def create_file