Skip to content

Commit 0b134aa

Browse files
committed
Add admin permission to lock issues via API
1 parent 0cc4523 commit 0b134aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ func Routes() *web.Router {
15261526
m.Combo("").
15271527
Put(bind(api.LockIssueOption{}), repo.LockIssue).
15281528
Delete(repo.UnlockIssue)
1529-
}, reqToken())
1529+
}, reqToken(), reqAdmin())
15301530
})
15311531
}, mustEnableIssuesOrPulls)
15321532
m.Group("/labels", func() {

0 commit comments

Comments
 (0)