gitea/routers/api/v1
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 Restrict email address validation (#17688) (#19085) 2022-03-14 20:51:58 +01:00
misc Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
notify Ignore missing comment for user notifications (#18954) (#19043) 2022-03-10 01:48:27 -05:00
org Add GetUserTeams (#18499) (#18531) 2022-02-02 08:40:04 +00:00
repo Fix the bug: deploy key with write access can not push (#19010) (#19182) 2022-03-23 13:44:41 +00:00
settings Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
swagger Add API to get issue/pull comments and events (timeline) (#17403) 2022-01-01 22:12:25 +08:00
user Restrict email address validation (#17688) (#19085) 2022-03-14 20:51:58 +01:00
utils Use a standalone struct name for Organization (#17632) 2021-11-19 19:41:40 +08:00
api.go Add API to get issue/pull comments and events (timeline) (#17403) 2022-01-01 22:12:25 +08:00