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>
..
avatar.go Fix bug on avatar ()
block.go Refactor repository transfer ()
block_test.go Add user blocking ()
delete.go Enable more `revive` linter rules ()
email.go Skip email domain check when admins edit user emails ()
email_test.go Skip email domain check when admins edit user emails ()
update.go Move some errors to their own sub packages ()
update_test.go Resolve lint for unused parameter and unnecessary type arguments ()
user.go Move some errors to their own sub packages ()
user_test.go Move some errors to their own sub packages ()