forked from gitea/gitea
1
0
Fork 0
gitea/cmd
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
..
admin.go Add/update SMTP auth providers via cli (#18197) 2022-01-12 22:54:53 +00:00
admin_auth_ldap.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
admin_auth_ldap_test.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
cert.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00
cmd.go Fix flag validation (#19046) (#19051) 2022-03-10 20:23:55 +00:00
convert.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
docs.go Fix offBy1 errors (#17606) 2021-11-14 10:11:49 +02:00
doctor.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
dump.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
dump_repo.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
embedded.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
embedded_stub.go Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
generate.go Add asymmetric JWT signing (#16010) 2021-06-17 23:56:46 +02:00
hook.go Fix the bug: deploy key with write access can not push (#19010) (#19182) 2022-03-23 13:44:41 +00:00
hook_test.go Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
keys.go Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
mailer.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
manager.go Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
migrate.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
migrate_storage.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
restore_repo.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +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
web.go Replace "unix" by "http+unix" for PROTOCOL (#17771) 2021-12-05 23:46:11 -05:00
web_graceful.go Make SSL cipher suite configurable (#17440) 2021-11-20 01:12:43 -05:00
web_https.go Add user settings key/value DB table (#16834) 2021-11-22 04:47:23 -05:00
web_letsencrypt.go Upgrade certmagic from v0.14.1 to v0.15.2 (#18138) 2022-01-01 17:43:28 +08:00