fix: admin can delete himself

This commit is contained in:
ogerly 2020-04-30 15:59:22 +02:00
parent fcc46d7f61
commit 7b48339e18
3 changed files with 1 additions and 6 deletions

View File

@ -1,5 +1,5 @@
<template>
<base-card v-if="currentUser.role !== 'admin'" class="delete-data">
<base-card class="delete-data">
<h2 class="title">
<base-icon name="warning" />
{{ $t('settings.deleteUserAccount.name') }}
@ -47,9 +47,6 @@
{{ $t('settings.deleteUserAccount.name') }}
</base-button>
</base-card>
<base-card v-else class="delete-data">
:) {{ $t('settings.deleteUserAccount.adminInfo') }}
</base-card>
</template>
<script>

View File

@ -632,7 +632,6 @@
"deleteUserAccount": {
"accountDescription": "Sei dir bewusst, dass deine Beiträge und Kommentare für unsere Community wichtig sind. Wenn du sie trotzdem löschen möchtest, musst du sie unten markieren.",
"accountWarning": "Dein Konto, deine Beiträge oder Kommentare kannst du nach dem Löschen WEDER VERWALTEN NOCH WIEDERHERSTELLEN!",
"adminInfo": "Der Kapitän verlässt immer als letzter das Schiff! Du bist Admin dieses Netzwerkes, du kannst dich auf diese weise nicht löschen! ;) ",
"commentedCount": "Meinen {count} Kommentar löschen ::: Meine {count} Kommentare löschen",
"contributionsCount": "Meinen {count} Beitrag löschen ::: Meine {count} Beiträge löschen",
"name": "Benutzerkonto löschen",

View File

@ -632,7 +632,6 @@
"deleteUserAccount": {
"accountDescription": "Be aware that your Posts and Comments are important to our community. If you still choose to delete them, you have to mark them below.",
"accountWarning": "You CAN'T MANAGE and CAN'T RECOVER your Account, Posts, or Comments after deleting your account!",
"adminInfo": "The captain is always the last to leave the ship! You are admin of this network, you cannot delete yourself this way! ;) ",
"commentedCount": "Delete my {count} comment ::: Delete my {count} comments",
"contributionsCount": "Delete my {count} post ::: Delete my {count} posts",
"name": "Delete user account",