mirror of https://github.com/go-gitea/gitea.git
Updated permissions
Signed-off-by: Bence Santha <git@santha.eu>
This commit is contained in:
parent
a65d8f3031
commit
0357003ddf
|
@ -876,7 +876,7 @@ func Routes() *web.Router {
|
||||||
m.Put("/{workflow_id}/disable", reqToken(), reqChecker, actw.DisableWorkflow)
|
m.Put("/{workflow_id}/disable", reqToken(), reqChecker, actw.DisableWorkflow)
|
||||||
m.Post("/{workflow_id}/dispatches", reqToken(), reqChecker, bind(api.CreateActionWorkflowDispatch{}), actw.DispatchWorkflow)
|
m.Post("/{workflow_id}/dispatches", reqToken(), reqChecker, bind(api.CreateActionWorkflowDispatch{}), actw.DispatchWorkflow)
|
||||||
m.Put("/{workflow_id}/enable", reqToken(), reqChecker, actw.EnableWorkflow)
|
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(
|
addActionsWorkflowRoutes(
|
||||||
m,
|
m,
|
||||||
reqRepoWriter(unit.TypeCode),
|
reqRepoWriter(unit.TypeActions),
|
||||||
repo.NewActionWorkflow(),
|
repo.NewActionWorkflow(),
|
||||||
)
|
)
|
||||||
m.Group("/hooks/git", func() {
|
m.Group("/hooks/git", func() {
|
||||||
|
|
Loading…
Reference in New Issue