MCPcopy Index your code
hub / github.com/simstudioai/sim / hasCredentialSetsAccess

Function hasCredentialSetsAccess

apps/sim/lib/billing/core/subscription.ts:459–470  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

457 * In non-production environments, returns true for convenience.
458 */
459export async function hasCredentialSetsAccess(userId: string): Promise<boolean> {
460 try {
461 if (isCredentialSetsEnabled && !isHosted) {
462 return true
463 }
464
465 return isTeamOrgAdminOrOwner(userId)
466 } catch (error) {
467 logger.error('Error checking credential sets access', { error, userId })
468 return false
469 }
470}
471
472/**
473 * Check if user has access to SSO feature

Callers 5

route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 2

isTeamOrgAdminOrOwnerFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected