This commit is contained in:
lesion
2019-07-23 14:33:23 +02:00
parent c8f13887a7
commit ed9e630a40
4 changed files with 2 additions and 4 deletions

View File

@@ -229,7 +229,6 @@ export default {
this.$axios.$put('/user', user)
},
async toggleAdmin(user) {
console.error(this.$auth.user)
if (user.id === this.$auth.user.id) return
user.is_admin = !user.is_admin
try {