?
This commit is contained in:
parent
d95dccdf36
commit
f20507bbec
1 changed files with 0 additions and 12 deletions
|
@ -31,18 +31,6 @@ export default authMiddleware({
|
||||||
status: 429,
|
status: 429,
|
||||||
statusText: "Too many requests!",
|
statusText: "Too many requests!",
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
const isAMA = auth.user?.emailAddresses.map((email) =>
|
|
||||||
email.emailAddress.includes("ama.ab.ca")
|
|
||||||
);
|
|
||||||
|
|
||||||
console.log("ISAMA: ", isAMA);
|
|
||||||
|
|
||||||
if (isAMA && isAMA?.length > 0) {
|
|
||||||
return NextResponse.redirect(
|
|
||||||
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.nextUrl.pathname.includes("/api/internal")) {
|
if (req.nextUrl.pathname.includes("/api/internal")) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue