admin rights display

This commit is contained in:
Julian Krauser 2024-09-18 16:15:40 +02:00
parent c89a65d5b4
commit 1e3d0771b5
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<template>
<div class="flex flex-col h-fit w-full border border-primary rounded-md">
<div class="bg-primary p-2 text-white flex flex-row justify-between items-center">
<p>{{ user.firstname }} {{ user.lastname }}</p>
<p>{{ user.firstname }} {{ user.lastname }} <small v-if="user.permissions_total.admin">(Admin)</small></p>
<div class="flex flex-row">
<RouterLink
v-if="can('update', 'user', 'user')"

View file

@ -75,7 +75,7 @@ export default defineComponent({
id: String,
},
watch: {
user() {
origin() {
this.assigned = this.origin?.roles.map((r) => r.id) ?? [];
},
},