fix super user check

This commit is contained in:
john 2025-05-20 23:49:45 +02:00
parent 8b92a780bf
commit 80f9b43022
2 changed files with 5 additions and 2 deletions

View file

@ -7,9 +7,11 @@ import { setGlobal } from '../femtoApp.ts'
export interface User {
id: string
username: string
roles: string[]
roles: Role[]
}
type Role = 'User' | 'SuperUser'
let globalUser: User | null
export function initUser() {