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

Function buildFullGrantsForAllFolders

public/js/adminPanel.js:499–506  ·  view source on GitHub ↗
(folders)

Source from the content-addressed store, hash-verified

497
498
499function buildFullGrantsForAllFolders(folders) {
500 const allTrue = {
501 view: true, viewOwn: false, manage: true, create: true, upload: true, edit: true,
502 rename: true, copy: true, move: true, delete: true, extract: true,
503 shareFile: true, shareFolder: true, share: true
504 };
505 return folders.reduce((acc, f) => { acc[f] = { ...allTrue }; return acc; }, {});
506}
507function applyHeaderColorsFromAdmin() {
508 try {
509 const lightInput = document.getElementById('brandingHeaderBgLight');

Callers 1

ensureLoadedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected