gitea/routers/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
..
default_branch.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
hook_post_receive.go show pull link for agit pull request also (#18235) 2022-01-17 13:56:43 +08:00
hook_pre_receive.go Fix the bug: deploy key with write access can not push (#19010) (#19182) 2022-03-23 13:44:41 +00:00
hook_proc_receive.go
hook_verification.go Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
internal.go
internal_repo.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
key.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
mail.go Do not send notification emails to inactive users (#19131) (#19139) 2022-03-19 18:33:32 +00:00
manager.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
manager_unix.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
manager_windows.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
restore_repo.go
serv.go Fix the bug: deploy key with write access can not push (#19010) (#19182) 2022-03-23 13:44:41 +00:00
ssh_log.go