Skip to content

Commit b5facd0

Browse files
committed
Fix comment
1 parent e12047e commit b5facd0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

routers/api/v1/admin/user.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ func DeleteUser(ctx *context.APIContext) {
310310
return
311311
}
312312

313-
// admin should not delete himself
313+
// admin should not delete themself
314314
if ctx.ContextUser.ID == ctx.Doer.ID {
315-
ctx.Error(http.StatusUnprocessableEntity, "", fmt.Errorf("You cannot delete yourself"))
315+
ctx.Error(http.StatusUnprocessableEntity, "", fmt.Errorf("you cannot delete yourself"))
316316
return
317317
}
318318

routers/web/admin/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ func DeleteUser(ctx *context.Context) {
416416
return
417417
}
418418

419-
// admin should not delete himself
419+
// admin should not delete themself
420420
if u.ID == ctx.Doer.ID {
421421
ctx.Flash.Error(ctx.Tr("admin.users.cannot_delete_self"))
422422
ctx.JSON(http.StatusOK, map[string]interface{}{

0 commit comments

Comments
 (0)