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

Function renderGroupAcl

public/js/adminFolderAccess.js:1842–1858  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1840 modal.style.display = 'flex';
1841
1842 const renderGroupAcl = async () => {
1843 const bodyEl = document.getElementById('groupAclBody');
1844 if (!bodyEl) return;
1845 bodyEl.textContent = `${t('loading')}…`;
1846
1847 const sourceId = getFolderAccessSourceId();
1848 const folders = await getAllFolders(true, sourceId);
1849 const grants = pickGroupGrantsForSource(__groupsCache[groupName] || {}, sourceId);
1850
1851 bodyEl.textContent = '';
1852 const box = document.createElement('div');
1853 box.className = 'folder-grants-box';
1854 bodyEl.appendChild(box);
1855
1856 renderFolderGrantsUI(groupName, box, ['root', ...folders.filter(f => f !== 'root')], grants);
1857 box.__grantsFallback = grants;
1858 };
1859
1860 await initFolderAccessSourceSelector({
1861 rowId: 'groupAclSourceRow',

Callers 1

openGroupAclEditorFunction · 0.85

Calls 5

tFunction · 0.85
getFolderAccessSourceIdFunction · 0.85
getAllFoldersFunction · 0.85
pickGroupGrantsForSourceFunction · 0.85
renderFolderGrantsUIFunction · 0.85

Tested by

no test coverage detected