Changed admin #6
@@ -11,7 +11,7 @@ const AuthRoute = ({ children }) => {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const isAuthenticated = true; // In a real application, this would be determined based on the user's authentication status.
|
const isAuthenticated = false; // In a real application, this would be determined based on the user's authentication status.
|
||||||
|
|
||||||
if (!isAuthenticated) {
|
if (!isAuthenticated) {
|
||||||
router.push("/auth/sign-in");
|
router.push("/auth/sign-in");
|
||||||
|
|||||||
Reference in New Issue
Block a user