Removed the syncing with firestore
This commit is contained in:
@@ -732,6 +732,15 @@ const App: React.FC = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
// Validate registration deadline
|
||||
if (targetEvent.registrationDeadline) {
|
||||
const deadline = new Date(targetEvent.registrationDeadline);
|
||||
if (new Date() > deadline) {
|
||||
alert("Registration Blocked: The registration deadline for this event has passed.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Try to fetch from Studentusers first, then externalusers
|
||||
let student = null;
|
||||
const { data: internalStudent } = await supabase.from('Studentusers').select('*').eq('id', user.id).single();
|
||||
|
||||
Reference in New Issue
Block a user