auth variable consolidation

This commit is contained in:
overcuriousity 2025-08-07 15:20:00 +02:00
parent 6f065a6e3b
commit 8516a39fcb
3 changed files with 0 additions and 5 deletions

View File

@ -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

View File

@ -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>

View File

@ -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;
} }