[admin] allow impersonation for superusers, for debugging purposes

This commit is contained in:
Andrea 2022-01-15 22:03:15 +01:00
parent 251acded50
commit 2bec35380b
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@
<template v-slot:row="s"> <template v-slot:row="s">
<td> <td>
<a :href="'https://pronouns.page/@' + s.el.username">@{{s.el.username}}</a> <a :href="'https://pronouns.page/@' + s.el.username">@{{s.el.username}}</a>
<a href="#" class="badge bg-primary text-white" @click.prevent="impersonate(s.el.email)"><Icon v="user-secret"/></a> <a v-if="$isGranted('*')" href="#" class="badge bg-primary text-white" @click.prevent="impersonate(s.el.email)"><Icon v="user-secret"/></a>
</td> </td>
<td> <td>
{{$datetime($ulidTime(s.el.id))}} {{$datetime($ulidTime(s.el.id))}}