gitea/models
Giteabot 98a81bef17
Refactor DeleteInactiveUsers, fix bug and add tests (#30206) (#30222)
Backport #30206 by wxiaoguang

1. check `IsActive` before calling `IsLastAdminUser`.
2. Fix some comments and error messages.
3. Don't `return err` if "removing file" fails in `DeleteUser`.
4. Remove incorrect `DeleteInactiveEmailAddresses`. Active users could
also have inactive emails, and inactive emails do not support
"olderThan"
5. Add tests

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-04-01 12:58:46 +08:00
..
actions
activities
admin
asymkey Fix GPG subkey verify (#30193) (#30203) 2024-03-31 06:48:33 +00:00
auth
avatars
db Fix misuse of TxContext (#30061) 2024-03-25 15:00:16 +08:00
dbfs
fixtures Add default board to new projects, remove uncategorized pseudo-board (#29874) 2024-03-27 20:54:32 +00:00
git Move from max( id ) to max( index ) for latest commit statuses (#30076) 2024-03-28 16:01:15 +08:00
issues Prevent re-review and dismiss review actions on closed and merged PRs (#30065) 2024-03-28 15:19:24 +00:00
migrations Fix migration v292 (#30153) 2024-03-28 16:14:30 +00:00
organization
packages
perm
project Fix migration v292 (#30153) 2024-03-28 16:14:30 +00:00
pull
repo Refactor topic Find functions and add more tests for pagination (#30127) (#30167) 2024-03-29 18:09:40 +01:00
secret
shared/types
system
unit
unittest
user Refactor DeleteInactiveUsers, fix bug and add tests (#30206) (#30222) 2024-04-01 12:58:46 +08:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org_team_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
org_team.go
org_test.go
org.go
repo_test.go
repo_transfer.go
repo.go