add enum SERVER to list of valid licenses (#5172)

This commit is contained in:
EthanHealy01
2025-12-05 13:18:23 +00:00
committed by GitHub
parent 3a2370ea1f
commit 9fd8fd89ed
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ export function useServerExperience(): ServerExperienceValue {
const loginEnabled = config?.enableLogin !== false;
const configIsAdmin = Boolean(config?.isAdmin);
const effectiveIsAdmin = configIsAdmin || (!loginEnabled && selfReportedAdmin);
const hasPaidLicense = config?.license === 'PRO' || config?.license === 'ENTERPRISE';
const hasPaidLicense = config?.license === 'SERVER' || config?.license === 'PRO' || config?.license === 'ENTERPRISE';
const setSelfReportedAdmin = useCallback((value: boolean) => {
setSelfReportedAdminState(value);

View File

@@ -249,7 +249,7 @@ export function ServerExperienceProvider({ children }: { children: ReactNode })
}, [fetchUserCounts]);
const hasPaidLicense = useMemo(() => {
return config?.license === 'PRO' || config?.license === 'ENTERPRISE';
return config?.license === 'SERVER' || config?.license === 'PRO' || config?.license === 'ENTERPRISE';
}, [config?.license]);
const licenseKeyValid = useMemo(() => {