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 Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 2021-09-16 15:34:54 +02:00
hook_verification.go Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
internal.go Clean-up HookPreReceive and restore functionality for pushing non-standard refs (#16705) 2021-09-16 15:34:54 +02:00
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 Move migrations into services and base into modules/migration (#17663) 2021-11-16 23:25:33 +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
ssh_log.go add a new internal hook to save ssh log (#15787) 2021-05-21 17:37:16 -04:00