Benutzer, Ticketzuweißungen

This commit is contained in:
2026-03-23 03:12:08 +01:00
parent e75a2e5e20
commit 08391cdb6c
29 changed files with 592 additions and 111 deletions

View File

@@ -19,7 +19,7 @@ export function updateNav(st, activeNav = '') {
nav.innerHTML = '';
return;
}
const isAdmin = st.user?.role === 'admin';
const isAdmin = st.user?.canAdmin === true;
const na = (key) => (activeNav === key ? 'nav-active' : '');
nav.innerHTML = `
<a href="/start.html" class="${na('start')}">Start</a>