feat: don't allow blocking the doer

- In the case of organization blocking users, disallow blocking the doer.
- Resolves #5390
- Added integration test.
This commit is contained in:
Gusted 2024-12-30 00:09:07 +01:00
parent d071c09bf7
commit e14f2d0c84
No known key found for this signature in database
GPG key ID: FD821B732837125F
3 changed files with 21 additions and 0 deletions

View file

@ -1042,6 +1042,7 @@ visibility.private_tooltip = Visible only to members of organizations you have j
blocked_since = Blocked since %s
user_unblock_success = The user has been unblocked successfully.
user_block_success = The user has been blocked successfully.
user_block_yourself = You cannot block yourself.
[repo]
rss.must_be_on_branch = You must be on a branch to have an RSS feed.