gitea/services/user
Lunny Xiao f88dbf86b3
Refactor repository transfer ()
- Both have `RejectTransfer` and `CancelTransfer` because the permission
checks are not the same. `CancelTransfer` can be done by the doer or
those who have admin permission to access this repository.
`RejectTransfer` can be done by the receiver user if it's an individual
or those who can create repositories if it's an organization.

- Some tests are wrong, this PR corrects them.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-30 05:40:44 +00:00
..
avatar.go Fix bug on avatar () 2024-05-19 12:58:39 +08:00
block.go Refactor repository transfer () 2025-01-30 05:40:44 +00:00
block_test.go Add user blocking () 2024-03-04 08:16:03 +00:00
delete.go Enable more `revive` linter rules () 2024-04-22 11:48:42 +00:00
email.go Skip email domain check when admins edit user emails () 2024-03-05 16:51:56 +00:00
email_test.go Skip email domain check when admins edit user emails () 2024-03-05 16:51:56 +00:00
update.go Move some errors to their own sub packages () 2024-12-20 18:05:29 +00:00
update_test.go Resolve lint for unused parameter and unnecessary type arguments () 2024-04-29 08:47:56 +00:00
user.go Move some errors to their own sub packages () 2024-12-20 18:05:29 +00:00
user_test.go Move some errors to their own sub packages () 2024-12-20 18:05:29 +00:00