MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / hasEntitlement

Function hasEntitlement

packages/web/src/lib/entitlements.ts:34–37  ·  view source on GitHub ↗
(entitlement: Entitlement)

Source from the content-addressed store, hash-verified

32}
33
34export const hasEntitlement = async (entitlement: Entitlement) => {
35 const license = await getSingleTenantLicense();
36 return _hasEntitlement(entitlement, license);
37}
38
39export const isAnonymousAccessAvailable = async () => {
40 const license = await getSingleTenantLicense();

Callers 15

getProvidersFunction · 0.90
initialize.tsFile · 0.90
getAuthenticatedUserFunction · 0.90
onCreateUserFunction · 0.90
addUserToOrganizationFunction · 0.90
checkAskEntitlementFunction · 0.90
AuthorizePageFunction · 0.90
LayoutFunction · 0.90
GitHubRepoPageFunction · 0.90
DefaultSidebarFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected