Operations dashboard screens are added
This commit is contained in:
@@ -6,7 +6,8 @@ import { authOptions } from "@/app/api/auth/[...nextauth]/route"; // Changed fro
|
||||
export default async function DashboardBasePage() {
|
||||
|
||||
const session = await getServerSession(authOptions);
|
||||
|
||||
// if user is not aunthenticated then its redirects to the
|
||||
// login page else redirect to dashboard page
|
||||
if (!session) {
|
||||
redirect("/login");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user