permission type rename

This commit is contained in:
Julian Krauser 2025-02-15 11:26:34 +01:00
parent 8033038c2e
commit 9d96a3f921
36 changed files with 128 additions and 108 deletions

View file

@ -4,7 +4,7 @@
<BackupListItem v-for="backup in backups" :key="backup" :backup="backup" />
</div>
<div class="flex flex-row gap-4">
<button v-if="can('create', 'user', 'backup')" primary class="!w-fit" @click="openCreateModal">
<button v-if="can('create', 'management', 'backup')" primary class="!w-fit" @click="openCreateModal">
Backup erstellen
</button>
</div>

View file

@ -4,7 +4,7 @@
<BackupListItem v-for="backup in backups" :key="backup" :backup="backup" />
</div>
<div class="flex flex-row gap-4">
<button v-if="can('create', 'user', 'backup')" primary class="!w-fit" @click="openUploadModal">
<button v-if="can('create', 'management', 'backup')" primary class="!w-fit" @click="openUploadModal">
Backup hochladen
</button>
</div>

View file

@ -11,7 +11,7 @@
<RoleListItem v-for="role in roles" :key="role.id" :role="role" />
</div>
<div class="flex flex-row gap-4">
<button v-if="can('create', 'user', 'role')" primary class="!w-fit" @click="openCreateModal">
<button v-if="can('create', 'management', 'role')" primary class="!w-fit" @click="openCreateModal">
Rolle erstellen
</button>
</div>

View file

@ -11,7 +11,7 @@
<UserListItem v-for="user in users" :key="user.id" :user="user" />
</div>
<div class="flex flex-row gap-4">
<button v-if="can('create', 'user', 'user')" primary class="!w-fit" @click="inviteUser">
<button v-if="can('create', 'management', 'user')" primary class="!w-fit" @click="inviteUser">
Nutzer einladen
</button>
<RouterLink button primary-outline :to="{ name: 'admin-user-user-invites' }" class="!w-fit">

View file

@ -11,7 +11,7 @@
<WebapiListItem v-for="webapi in webapis" :key="webapi.id" :webapi="webapi" />
</div>
<div class="flex flex-row gap-4">
<button v-if="can('create', 'user', 'webapi')" primary class="!w-fit" @click="openCreateModal">
<button v-if="can('create', 'management', 'webapi')" primary class="!w-fit" @click="openCreateModal">
Webapi-Token erstellen
</button>
</div>