1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-28 08:10:01 +02:00
gitea/modules
zeripath e8574f2f7d
Nicely handle missing user in collaborations (#17049)
* Nicely handle missing user in collaborations

It is possible to have a collaboration in a repository which refers to a no-longer
existing user. This causes the repository transfer to fail with an unusual error.

This PR makes `repo.getCollaborators()` nicely handle the missing user by ghosting
the collaboration but also adds consistency check. It also adds an
Access consistency check.

Fix #17044

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2021-09-27 19:07:19 +01:00
..
analyze
auth
avatar refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
base
cache
charset refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
context Move twofactor to models/login (#17143) 2021-09-25 15:00:12 +02:00
convert Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
cron
csv
doctor Nicely handle missing user in collaborations (#17049) 2021-09-27 19:07:19 +01:00
emoji
eventsource
generate
git Support direct comparison (git diff a..b) as well merge comparison (a...b) (#16635) 2021-09-27 13:19:34 +01:00
gitgraph Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
graceful refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
hcaptcha
highlight Prevent panic in Org mode HighlightCodeBlock (#17140) 2021-09-24 14:29:32 +01:00
httpcache
httplib refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
indexer Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
json
lfs refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
log refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
markup Prevent panic in Org mode HighlightCodeBlock (#17140) 2021-09-24 14:29:32 +01:00
matchlist
metrics
migrations Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
nosql
notification Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
options refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
password
pprof refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
private refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
process
proxy
public refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
queue refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
recaptcha refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
references
repofiles Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
repository Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
secret
session
setting Use light/dark theme based on system preference (#17051) 2021-09-27 15:47:44 +01:00
ssh
storage refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
structs
svg refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
sync
task
templates refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
test Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
timeutil
translation
typesniffer
upload
uri
user
util
validation
web