Skip to content

Commit 0357003

Browse files
committed
Updated permissions
Signed-off-by: Bence Santha <[email protected]>
1 parent a65d8f3 commit 0357003

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
@@ -876,7 +876,7 @@ func Routes() *web.Router {
876876
m.Put("/{workflow_id}/disable", reqToken(), reqChecker, actw.DisableWorkflow)
877877
m.Post("/{workflow_id}/dispatches", reqToken(), reqChecker, bind(api.CreateActionWorkflowDispatch{}), actw.DispatchWorkflow)
878878
m.Put("/{workflow_id}/enable", reqToken(), reqChecker, actw.EnableWorkflow)
879-
}, context.ReferencesGitRepo(), reqRepoWriter(unit.TypeCode))
879+
}, context.ReferencesGitRepo(), reqRepoWriter(unit.TypeActions))
880880
})
881881
}
882882

@@ -1125,7 +1125,7 @@ func Routes() *web.Router {
11251125
)
11261126
addActionsWorkflowRoutes(
11271127
m,
1128-
reqRepoWriter(unit.TypeCode),
1128+
reqRepoWriter(unit.TypeActions),
11291129
repo.NewActionWorkflow(),
11301130
)
11311131
m.Group("/hooks/git", func() {

0 commit comments

Comments
 (0)