forgejo/models
JakobDev 45fa9e5ae9 fix: Allow Organisations to remove the Email Address (#5517)
It is possible to set a Email for a Organization. This Email is optional and only used to be displayed on the profile page. However, once you set an EMail, you can no longer remove it. This PR fixes that.

While working on the tests, I found out, that the API returns a 500 when trying to set an invalid EMail. I fixed that too. It returns a 422 now.

Fixes #4567

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5517
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: JakobDev <jakobdev@gmx.de>
Co-committed-by: JakobDev <jakobdev@gmx.de>
2024-11-20 12:31:34 +00:00
..
actions fix: Actions PR workflows must update the commit status 2024-11-04 11:27:14 +01:00
activities test: fix test linting 2024-11-11 12:44:36 +01:00
admin
asymkey
auth fix: extend forgejo_auth_token table (part two) 2024-11-16 10:53:46 +01:00
avatars
db
dbfs
fixtures feat: improve GetLatestCommitStatusForPairs 2024-11-16 13:23:40 +01:00
forgefed
forgejo/semver tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
forgejo_migrations fix: extend forgejo_auth_token table (part two) 2024-11-16 10:53:46 +01:00
git feat: improve GetLatestCommitStatusForPairs 2024-11-16 13:23:40 +01:00
issues fix: use better code to group UID and stopwatches 2024-11-16 15:59:02 +01:00
migrations [PORT] Refactor the DB migration system slightly (gitea#32344) 2024-11-03 17:00:48 +01:00
organization tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
packages tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
perm tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
project test: fix test linting 2024-11-11 12:44:36 +01:00
pull
quota
repo Only query team tables if repository is under org when getting assignees (#32414) 2024-11-16 14:57:11 +01:00
secret
shared/types
system tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
unit
unittest chore: simplify CopyDir 2024-11-10 17:21:57 +01:00
user fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:31:34 +00:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go