forgejo/models
JakobDev da7e85c819 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>
(cherry picked from commit 45fa9e5ae9)
2024-11-20 12:32:36 +00:00
..
actions fix: Actions PR workflows must update the commit status 2024-11-04 14:10:27 +00:00
activities Fix nil panic if repo doesn't exist (#32501) 2024-11-17 11:45:54 +01:00
admin
asymkey
auth fix: extend forgejo_auth_token table 2024-11-15 11:33:17 +01:00
avatars
db
dbfs
fixtures fix: Add recentupdated as recognized sort option 2024-10-20 10:58:07 +00:00
forgefed
forgejo/semver
forgejo_migrations
git
issues fix: use better code to group UID and stopwatches 2024-11-17 19:18:45 +00:00
migrations
organization fix: Add recentupdated as recognized sort option 2024-10-20 10:58:07 +00:00
packages fix: use buffered iterate for debian searchpackages 2024-10-27 00:10:02 +00:00
perm
project
pull
quota
repo fix: anomynous users code search for private/limited user's repository 2024-11-15 11:32:38 +01:00
secret
shared/types
system
unit i18n: UX improvements: Team permissions and issue closing 2024-09-24 19:03:30 +02:00
unittest
user fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:32:36 +00:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go