From 0357003ddf2e25f48538b91f0b8e2dcf6045fd5d Mon Sep 17 00:00:00 2001 From: Bence Santha Date: Thu, 3 Oct 2024 08:46:34 +0200 Subject: [PATCH] Updated permissions Signed-off-by: Bence Santha --- routers/api/v1/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index af2d6a76427..7a8e81fd2e9 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -876,7 +876,7 @@ func Routes() *web.Router { m.Put("/{workflow_id}/disable", reqToken(), reqChecker, actw.DisableWorkflow) m.Post("/{workflow_id}/dispatches", reqToken(), reqChecker, bind(api.CreateActionWorkflowDispatch{}), actw.DispatchWorkflow) m.Put("/{workflow_id}/enable", reqToken(), reqChecker, actw.EnableWorkflow) - }, context.ReferencesGitRepo(), reqRepoWriter(unit.TypeCode)) + }, context.ReferencesGitRepo(), reqRepoWriter(unit.TypeActions)) }) } @@ -1125,7 +1125,7 @@ func Routes() *web.Router { ) addActionsWorkflowRoutes( m, - reqRepoWriter(unit.TypeCode), + reqRepoWriter(unit.TypeActions), repo.NewActionWorkflow(), ) m.Group("/hooks/git", func() {