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

Function saveAllGroups

public/js/adminFolderAccess.js:793–804  ·  view source on GitHub ↗
(groups)

Source from the content-addressed store, hash-verified

791}
792
793async function saveAllGroups(groups) {
794 const res = await fetch('/api/pro/groups/save.php', {
795 method: 'POST',
796 credentials: 'include',
797 headers: {
798 'Content-Type': 'application/json',
799 'X-CSRF-Token': window.csrfToken || ''
800 },
801 body: JSON.stringify({ groups })
802 });
803 return await safeJson(res);
804}
805
806let __groupsCache = {};
807

Callers 1

saveUserGroupsFromUIFunction · 0.85

Calls 1

safeJsonFunction · 0.70

Tested by

no test coverage detected