MCPcopy Create free account
hub / github.com/error311/FileRise / updateUserMetaCache

Function updateUserMetaCache

public/js/adminPanel.js:6055–6063  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

6053}
6054
6055function updateUserMetaCache(list) {
6056 __userMetaCache = {};
6057 (list || []).forEach(u => {
6058 if (!u || !u.username) return;
6059 __userMetaCache[u.username] = {
6060 isAdmin: isAdminUser(u)
6061 };
6062 });
6063}
6064
6065async function renderUserHubFlagsForSelected(modal) {
6066 const flagsHost = modal.querySelector('#adminUserHubFlagsRow');

Callers

nothing calls this directly

Calls 1

isAdminUserFunction · 0.85

Tested by

no test coverage detected