MCPcopy Create free account
hub / github.com/Noumena-Network/code / getBashPermissionSources

Function getBashPermissionSources

src/components/TrustDialog/utils.ts:61–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 * Returns an array of file paths that have bash permissions.
60 */
61export function getBashPermissionSources(): string[] {
62 const sources: string[] = []
63
64 const projectRules = getPermissionRulesForSource('projectSettings')
65 if (hasBashPermission(projectRules)) {
66 sources.push(PROJECT_SETTINGS_DISPLAY_PATH)
67 }
68
69 const localRules = getPermissionRulesForSource('localSettings')
70 if (hasBashPermission(localRules)) {
71 sources.push(LOCAL_SETTINGS_DISPLAY_PATH)
72 }
73
74 return sources
75}
76
77/**
78 * Format a list of items with proper "and" conjunction.

Callers 1

TrustDialogFunction · 0.85

Calls 2

hasBashPermissionFunction · 0.85

Tested by

no test coverage detected