MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / ifPermissionContainsTrue

Function ifPermissionContainsTrue

packages/ui/src/views/apikey/APIKeyDialog.jsx:325–337  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

323 }
324
325 const ifPermissionContainsTrue = (obj) => {
326 for (const key in obj) {
327 if (typeof obj[key] === 'object' && obj[key] !== null) {
328 // Recursively check nested objects
329 if (ifPermissionContainsTrue(obj[key])) {
330 return true
331 }
332 } else if (obj[key] === true) {
333 return true
334 }
335 }
336 return false
337 }
338
339 const component = show ? (
340 <Dialog

Callers 1

checkDisabledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected