Node.js based forum software built for the modern web
fix: #9019, add missing lang strings
Barış Soner Uşaklıb46d2f93e64e
diff --git a/public/language/en-GB/error.json b/public/language/en-GB/error.jsonindex 9cbed30fdd..8782c9d665 100644--- a/public/language/en-GB/error.json+++ b/public/language/en-GB/error.json@@ -109,6 +109,8 @@"cant-remove-last-admin": "You are the only administrator. Add another user as an administrator before removing yourself as admin","cant-delete-admin": "Remove administrator privileges from this account before attempting to delete it.",+ "already-deleting": "Already deleting",+"invalid-image": "Invalid image","invalid-image-type": "Invalid image type. Allowed types are: %1","invalid-image-extension": "Invalid image extension",diff --git a/src/api/users.js b/src/api/users.jsindex 08d4bc6af1..1e1f5ae40c 100644--- a/src/api/users.js+++ b/src/api/users.js@@ -247,7 +247,7 @@ async function processDeletion({ uid, method, password, caller }) {} else if (!isSelf && !isAdmin) {throw new Error('[[error:no-privileges]]');} else if (isTargetAdmin) {- throw new Error('[[error:cant-delete-other-admins]]');+ throw new Error('[[error:cant-delete-admin]');}// Privilege checks -- only deleteAccount is available for non-admins