Benutzer, Ticketzuweißungen
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user