экспорт маппинга
This commit is contained in:
@@ -317,6 +317,9 @@
|
||||
}
|
||||
state.currentUser = user;
|
||||
state.isAdmin = Boolean(user?.is_admin);
|
||||
const editorButton = document.getElementById("runtimeEditorBtn");
|
||||
editorButton?.classList.toggle("hidden", !state.isAdmin);
|
||||
document.body.dataset.hockeyAdmin = state.isAdmin ? "1" : "0";
|
||||
const currentAccountId = String(user?.id || "").trim();
|
||||
if (!currentAccountId) return;
|
||||
const previousAccountId = String(localStorage.getItem(storage.account) || "").trim();
|
||||
|
||||
Reference in New Issue
Block a user