fix: #9019, add missing lang strings

This commit is contained in:
Barış Soner Uşaklı
2020-12-01 12:38:23 -05:00
parent e45b5cba81
commit b46d2f93e6
2 changed files with 3 additions and 1 deletions

View File

@@ -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