gitea/services/repository
KN4CK3R c337ff0ec7
Add user blocking (#29028)
Fixes #17453

This PR adds the abbility to block a user from a personal account or
organization to restrict how the blocked user can interact with the
blocker. The docs explain what's the consequence of blocking a user.

Screenshots:


![grafik](https://github.com/go-gitea/gitea/assets/1666336/4ed884f3-e06a-4862-afd3-3b8aa2488dc6)


![grafik](https://github.com/go-gitea/gitea/assets/1666336/ae6d4981-f252-4f50-a429-04f0f9f1cdf1)


![grafik](https://github.com/go-gitea/gitea/assets/1666336/ca153599-5b0f-4b4a-90fe-18bdfd6f0b6b)

---------

Co-authored-by: Lauris BH <lauris@nix.lv>
2024-03-04 08:16:03 +00:00
..
archiver Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
files Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
adopt.go Start to migrate from `util.OptionalBool` to `optional.Option[bool]` (#29329) 2024-02-23 02:18:33 +00:00
adopt_test.go
avatar.go
avatar_test.go
branch.go remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
cache.go Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
check.go Update tool dependencies (#29030) 2024-02-02 19:11:39 -05:00
collaboration.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
collaboration_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
commit.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
contributors_graph.go Implement code frequency graph (#29191) 2024-02-23 23:41:24 +00:00
contributors_graph_test.go Implement contributors graph (#27882) 2024-02-15 23:21:13 +01:00
create.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
create_test.go bump to use go 1.22 (#29119) 2024-02-14 18:19:57 +00:00
delete.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
delete_test.go
fork.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
fork_test.go
generate.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
generate_test.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
hooks.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
init.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
lfs.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
lfs_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
main_test.go
migrate.go Move migration functions to services layer (#29497) 2024-03-01 02:23:00 +00:00
push.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
repository.go
repository_test.go
review.go
review_test.go
setting.go Fix an actions schedule bug (#28942) 2024-01-31 14:55:12 +00:00
template.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
transfer.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
transfer_test.go Move some repository transfer functions to service layer (#28855) 2024-02-05 06:17:23 +00:00