aboutsummaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-05-09 04:22:55 +0800
committerGitHub <noreply@github.com>2022-05-08 21:22:55 +0100
commit9efa47131f3fa576bd0ef73fa4c5b96c95d89906 (patch)
tree80c65663cc9aab9f51f1e321a16bb84b7badc29b /options
parent290cc884f2eaffd971d756d166f55771e8cdbed7 (diff)
downloadgitea-9efa47131f3fa576bd0ef73fa4c5b96c95d89906.tar.gz
gitea-9efa47131f3fa576bd0ef73fa4c5b96c95d89906.zip
Admin should not delete himself (#19423)
Admin should not be able to delete themselves. Also partially fix #15449
Diffstat (limited to 'options')
-rw-r--r--options/locale/locale_en-US.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 875a557b43..d43e34dd82 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -2529,6 +2529,7 @@ users.allow_import_local = May Import Local Repositories
users.allow_create_organization = May Create Organizations
users.update_profile = Update User Account
users.delete_account = Delete User Account
+users.cannot_delete_self = "You cannot delete yourself"
users.still_own_repo = This user still owns one or more repositories. Delete or transfer these repositories first.
users.still_has_org = This user is a member of an organization. Remove the user from any organizations first.
users.still_own_packages = This user still owns one or more packages. Delete these packages first.