main #11
@ -124,7 +124,6 @@ AI_MAX_PROMPT_TOKENS=2500
|
|||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|
||||||
# Enable authentication for different features
|
# Enable authentication for different features
|
||||||
AUTHENTICATION_NECESSARY=false
|
|
||||||
AUTHENTICATION_NECESSARY_CONTRIBUTIONS=false
|
AUTHENTICATION_NECESSARY_CONTRIBUTIONS=false
|
||||||
AUTHENTICATION_NECESSARY_AI=false
|
AUTHENTICATION_NECESSARY_AI=false
|
||||||
|
|
||||||
|
@ -248,8 +248,6 @@ const { title, description = 'ForensicPathways - A comprehensive directory of di
|
|||||||
await showIfAuthenticated('#ai-view-toggle', 'ai');
|
await showIfAuthenticated('#ai-view-toggle', 'ai');
|
||||||
};
|
};
|
||||||
initAIButton();
|
initAIButton();
|
||||||
|
|
||||||
console.log('[CONSOLIDATED] All utilities loaded and initialized');
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -260,8 +260,6 @@ function getAuthRequirement(context: AuthContextType): boolean {
|
|||||||
return process.env.AUTHENTICATION_NECESSARY_CONTRIBUTIONS !== 'false';
|
return process.env.AUTHENTICATION_NECESSARY_CONTRIBUTIONS !== 'false';
|
||||||
case 'ai':
|
case 'ai':
|
||||||
return process.env.AUTHENTICATION_NECESSARY_AI !== 'false';
|
return process.env.AUTHENTICATION_NECESSARY_AI !== 'false';
|
||||||
case 'general':
|
|
||||||
return process.env.AUTHENTICATION_NECESSARY !== 'false';
|
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user