From 10e992083aaf988b0e452ee979b24860133dd184 Mon Sep 17 00:00:00 2001 From: ym-project Date: Wed, 16 Sep 2020 20:22:16 +0800 Subject: [PATCH 1/2] Update russian - set uppercase first character in "powered-by" - localize "custom-range" --- lang/ru-RU.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/ru-RU.json b/lang/ru-RU.json index 5c6e9df7..c2c24a10 100644 --- a/lang/ru-RU.json +++ b/lang/ru-RU.json @@ -13,13 +13,13 @@ "button.save": "Сохранить", "button.view-details": "Посмотреть детали", "button.websites": "Сайты", - "footer.powered-by": "на движке", + "footer.powered-by": "На движке", "header.nav.dashboard": "Информационная панель", "header.nav.settings": "Настройки", "label.administrator": "Администратор", "label.confirm-password": "Подтвердить пароль", "label.current-password": "Текущий пароль", - "label.custom-range": "Custom range", + "label.custom-range": "Другой период", "label.domain": "Домен", "label.enable-share-url": "Разрешить делиться ссылкой", "label.invalid": "Некорректный", From 543a66579e606a3ac9a8448b365938626126fc21 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 16 Sep 2020 09:25:14 -0700 Subject: [PATCH 2/2] Fix delete account issue. --- pages/api/account/[id].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/account/[id].js b/pages/api/account/[id].js index c87f948b..6f9beac1 100644 --- a/pages/api/account/[id].js +++ b/pages/api/account/[id].js @@ -9,7 +9,7 @@ export default async (req, res) => { const { id } = req.query; const user_id = +id; - if (is_admin) { + if (!is_admin) { return unauthorized(res); }