Skip to content

Commit a96eb2f

Browse files
bencuriolunny
authored andcommitted
Updated permissions
Signed-off-by: Bence Santha <[email protected]>
1 parent 4850970 commit a96eb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/api/v1/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ func Routes() *web.Router {
927927
m.Put("/{workflow_id}/disable", reqToken(), reqChecker, actw.DisableWorkflow)
928928
m.Post("/{workflow_id}/dispatches", reqToken(), reqChecker, bind(api.CreateActionWorkflowDispatch{}), actw.DispatchWorkflow)
929929
m.Put("/{workflow_id}/enable", reqToken(), reqChecker, actw.EnableWorkflow)
930-
}, context.ReferencesGitRepo(), reqRepoWriter(unit.TypeCode))
930+
}, context.ReferencesGitRepo(), reqRepoWriter(unit.TypeActions))
931931
})
932932
}
933933

@@ -1178,7 +1178,7 @@ func Routes() *web.Router {
11781178
)
11791179
addActionsWorkflowRoutes(
11801180
m,
1181-
reqRepoWriter(unit.TypeCode),
1181+
reqRepoWriter(unit.TypeActions),
11821182
repo.NewActionWorkflow(),
11831183
)
11841184
m.Group("/hooks/git", func() {

0 commit comments

Comments
 (0)