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

Function getFolderAccessSourceId

public/js/adminFolderAccess.js:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15let __aclSourceId = '';
16
17function getFolderAccessSourceId() {
18 const groupModal = document.getElementById('groupAclModal');
19 if (groupModal && groupModal.style.display !== 'none') {
20 const groupSel = document.getElementById('groupAclSourceSelect');
21 const groupId = groupSel && groupSel.value ? String(groupSel.value) : '';
22 return groupId || __aclSourceId || '';
23 }
24 const sel = document.getElementById('folderAccessSourceSelect');
25 const id = sel && sel.value ? String(sel.value) : '';
26 return id || __aclSourceId || '';
27}
28
29async function loadFolderAccessSources() {
30 if (__aclSourcesCache) return __aclSourcesCache;

Callers 7

getAllFoldersFunction · 0.85
getUserGrantsFunction · 0.85
openUserPermissionsModalFunction · 0.85
loadUserPermissionsListFunction · 0.85
renderGroupAclFunction · 0.85
saveGroupAclFromUIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected