mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-15 05:37:46 +00:00
Add admin permission to lock issues via API
This commit is contained in:
parent
8efc9d41f9
commit
aa0b2436f3
@ -1526,7 +1526,7 @@ func Routes() *web.Router {
|
||||
m.Combo("").
|
||||
Put(bind(api.LockIssueOption{}), repo.LockIssue).
|
||||
Delete(repo.UnlockIssue)
|
||||
}, reqToken())
|
||||
}, reqToken(), reqAdmin())
|
||||
})
|
||||
}, mustEnableIssuesOrPulls)
|
||||
m.Group("/labels", func() {
|
||||
|
Loading…
Reference in New Issue
Block a user