remove extra file

This commit is contained in:
Wells Bunker 2025-09-24 12:35:04 -06:00
parent 020f0eae5b
commit 8b981a47f6
No known key found for this signature in database
GPG Key ID: DB16D6F2679B78FC
1 changed files with 0 additions and 18 deletions

View File

@ -1,18 +0,0 @@
export function hasPublicAccess(
publiclyAccessible: boolean,
publicExpiryDate?: string,
publicPassword?: string,
password?: string,
): boolean {
if (!publiclyAccessible) {
return false;
}
const today = new Date();
if (publicExpiryDate && new Date(publicExpiryDate) < today) {
return false;
}
if (publicPassword && publicPassword !== password) {
return false;
}
return true;
}