0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-22 09:31:13 +01:00
gitea/models
Zettat123 0ab22a1a02
fix incorrect role labels for migrated issues and comments (#22914)
Fix #22797.

## Reason
If a comment was migrated from other platforms, this comment may have an
original author and its poster is always not the original author. When
the `roleDescriptor` func get the poster's role descriptor for a
comment, it does not check if the comment has an original author. So the
migrated comments' original authors might be marked as incorrect roles.

---------

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-02-15 12:29:13 -05:00
..
actions
activities Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
admin
asymkey Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
auth
avatars Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
db Move delete user to service (#22478) 2023-02-13 13:11:41 +08:00
dbfs
fixtures
git Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
issues fix incorrect role labels for migrated issues and comments (#22914) 2023-02-15 12:29:13 -05:00
migrations
organization Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
packages
perm
project
pull
repo Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
secret
system Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
unit
unittest
user Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate.go
migrate_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go