Skip to content

Commit aaba35a

Browse files
committed
improve
1 parent ed2ac90 commit aaba35a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

options/locale/locale_en-US.ini

+2
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,8 @@ org_still_own_packages = "This organization still owns one or more packages, del
589589
590590
target_branch_not_exist = Target branch does not exist.
591591
592+
cannot_delete_self = You cannot delete yourself when you are an admin. Please remove your admin privileges first.
593+
592594
[user]
593595
change_avatar = Change your avatar…
594596
joined_on = Joined on %s

routers/web/user/setting/account.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func DeleteAccount(ctx *context.Context) {
248248

249249
// admin should not delete themself
250250
if ctx.Doer.IsAdmin {
251-
ctx.Flash.Error(ctx.Tr("admin.users.cannot_delete_self"))
251+
ctx.Flash.Error(ctx.Tr("form.cannot_delete_self"))
252252
ctx.Redirect(setting.AppSubURL + "/user/settings/account")
253253
return
254254
}

0 commit comments

Comments
 (0)