fix: don't allow to remove root user

This commit is contained in:
Oleg Lobanov
2021-01-11 22:33:36 +01:00
parent 8cea2f75b3
commit 019ce80fc5
6 changed files with 22 additions and 11 deletions

View File

@@ -115,7 +115,7 @@ export default {
this.$router.push({ path: '/settings/users' })
this.$showSuccess(this.$t('settings.userDeleted'))
} catch (e) {
this.$showError(e)
(e.message === "403") ? this.$showError(this.$t("errors.forbidden"), false) : this.$showError(e)
}
},
async save (event) {