File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -310,9 +310,9 @@ func DeleteUser(ctx *context.APIContext) {
310
310
return
311
311
}
312
312
313
- // admin should not delete himself
313
+ // admin should not delete themself
314
314
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" ))
316
316
return
317
317
}
318
318
Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ func DeleteUser(ctx *context.Context) {
416
416
return
417
417
}
418
418
419
- // admin should not delete himself
419
+ // admin should not delete themself
420
420
if u .ID == ctx .Doer .ID {
421
421
ctx .Flash .Error (ctx .Tr ("admin.users.cannot_delete_self" ))
422
422
ctx .JSON (http .StatusOK , map [string ]interface {}{
You can’t perform that action at this time.
0 commit comments