0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 07:13:02 -05:00
forgejo/modules/structs
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
..
activity.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
activitypub.go
admin_user.go Do not require login_name & source_id for /admin/user/{username} 2024-04-17 10:33:52 +02:00
attachment.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
commit_status.go Restore warning commit status (#27504) 2023-10-08 22:16:06 +00:00
commit_status_test.go
cron.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go fix: add label to issues and PR labeled/unlabeled events 2024-11-04 14:10:27 +00:00
issue.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
issue_comment.go [FEAT] allow setting the update date on issues and comments 2024-02-05 14:44:33 +01:00
issue_label.go Support using label names when changing issue labels (#30943) 2024-05-19 13:12:35 +02:00
issue_milestone.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
issue_reaction.go
issue_stopwatch.go
issue_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
issue_tracked_time.go
lfs_lock.go
mirror.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
miscellaneous.go
moderation.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
nodeinfo.go
notifications.go
org.go fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:32:36 +00:00
org_member.go
org_team.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
package.go Fix package webhook (#27839) 2023-10-31 04:43:38 +00:00
pull.go Fix null requested_reviewer from API (#31773) 2024-08-13 06:51:49 +02:00
pull_review.go [GITEA] POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments 2024-02-05 16:09:42 +01:00
quota.go feat(quota): Humble beginnings of a quota engine 2024-08-02 11:10:34 +02:00
release.go [FEAT]Add Option to hide Release Archive links (#3139) 2024-04-24 15:15:55 +00:00
repo.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
repo_actions.go Add API endpoints for getting action jobs status (#26673) 2024-05-05 12:15:40 +01:00
repo_branch.go [FEAT] Configure if protected branch rule should apply to admins 2024-03-29 00:21:49 +01:00
repo_collaborator.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
repo_commit.go
repo_compare.go feat(api): implement branch/commit comparison API (#30349) 2024-04-21 11:58:18 +02:00
repo_file.go [CHORE] Fix swagger deprecation message 2024-08-10 01:21:13 +02:00
repo_flags.go [FEAT] API support for repository flags 2024-02-05 16:09:42 +01:00
repo_key.go
repo_note.go
repo_refs.go
repo_tag.go Add tag protection via rest api #17862 (#31295) 2024-06-16 13:42:59 +02:00
repo_topic.go
repo_tree.go
repo_watch.go
repo_wiki.go
secret.go refactor(API): refactor secret creation and update functionality (#26751) 2023-08-28 13:08:19 +08:00
settings.go Allow instance-wide disabling of forking 2024-02-25 12:00:17 +01:00
status.go
task.go style: reenable switch check 2024-08-18 15:19:01 +02:00
user.go Adjust codespell config + make it fix few typos which sneaked in since addition of codespell support (#4857) 2024-08-08 16:07:35 +00:00
user_app.go
user_email.go
user_gpgkey.go
user_key.go
variable.go Add API for Variables (#29520) 2024-04-07 10:57:53 +02:00
visible_type.go
workflow.go Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00