forgejo/modules/private
zeripath 93feb1a666
Fix the bug: deploy key with write access can not push (#19010) (#19182)
Backport #19010

Use DeployKeyID to replace the IsDeployKey, then CanWriteCode uses the DeployKeyID to check the write permission.

Fix #19009

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-03-23 13:44:41 +00:00
..
hook.go Fix the bug: deploy key with write access can not push (#19010) (#19182) 2022-03-23 13:44:41 +00:00
internal.go Replace "unix" by "http+unix" for PROTOCOL (#17771) 2021-12-05 23:46:11 -05:00
key.go refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
mail.go refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
manager.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
restore_repo.go refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
serv.go Fix the bug: deploy key with write access can not push (#19010) (#19182) 2022-03-23 13:44:41 +00:00