mirror of https://github.com/buster-so/buster.git
remove extra file
This commit is contained in:
parent
020f0eae5b
commit
8b981a47f6
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue