add admin stuff
This commit is contained in:
@ -39,6 +39,9 @@
|
||||
async function main() {
|
||||
const me = await getJson("/auth/me");
|
||||
document.getElementById("whoami").textContent = `${me.username}${me.is_admin ? " (Admin)" : ""}`;
|
||||
if (me.is_admin) {
|
||||
document.getElementById("admin-link").classList.remove("hidden");
|
||||
}
|
||||
|
||||
const hosts = await getJson("/catalog/hosts");
|
||||
const byGroup = {};
|
||||
|
||||
Reference in New Issue
Block a user