Prevent DeleteUser API abuse #10125

Merged
6543 merged 2 commits from prefent-api-missuse into master 2020-02-03 16:46:34 +00:00
6543 commented 2020-02-03 15:38:38 +00:00 (Migrated from github.com)

close #10119

close #10119
lafriks (Migrated from github.com) approved these changes 2020-02-03 15:40:25 +00:00
davidsvantesson (Migrated from github.com) approved these changes 2020-02-03 15:43:08 +00:00
jolheiser approved these changes 2020-02-03 15:44:41 +00:00
jolheiser left a comment
Contributor

Small nits otherwise LGTM

Small nits otherwise LGTM
Contributor
		ctx.Error(http.StatusUnprocessableEntity, "", fmt.Errorf("%s is an organization not a user", u.Name))
```suggestion ctx.Error(http.StatusUnprocessableEntity, "", fmt.Errorf("%s is an organization not a user", u.Name)) ```
Contributor
// SettingsDelete response for deleting an organization
```suggestion // SettingsDelete response for deleting an organization ```
This repo is archived. You cannot comment on pull requests.
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#10125
No description provided.