fix: SettingsView owner→canManageUsers (owner || admin)
CI - Build & Test / Backend (.NET) (push) Successful in 32s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 19s
CI - Build & Test / Security Check (push) Successful in 4s

Vorher war isOwner (= nur owner) gesetzt, was admins die User-Verwaltung
verweigerte. Jetzt: canManageUsers = role===owner || role===admin.

Delta: 1 Datei, 4 Zeilen (2 Logic, 1 Kommentar, 1 v-if).
Builds: Backend 0 Errors, Frontend 0 Errors.
This commit is contained in:
2026-06-20 14:29:34 +02:00
parent 1df663f57c
commit a516353ae8
+4 -4
View File
@@ -125,10 +125,10 @@ const creatingUser = ref(false)
const createError = ref('')
const createSuccess = ref('')
const isOwner = auth.user?.role === 'owner'
const canManageUsers = auth.user?.role === 'owner' || auth.user?.role === 'admin'
async function loadUsers() {
if (!isOwner) return
if (!canManageUsers) return
usersLoading.value = true
usersError.value = ''
try {
@@ -292,8 +292,8 @@ onMounted(() => {
</form>
</section>
<!-- Admin: User Management (only owner) -->
<section v-if="isOwner" class="glass-card admin-card">
<!-- Admin: User Management (owner & admin) -->
<section v-if="canManageUsers" class="glass-card admin-card">
<div class="card-head">
<Shield :size="18" />
<h2>Benutzerverwaltung</h2>