auto push

This commit is contained in:
2024-04-19 10:18:59 +08:00
parent dab7b8748b
commit c8666e65d1
84 changed files with 410 additions and 287 deletions

View File

@@ -1,10 +1,10 @@
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
import { HomeLayout } from "@/app_modules/home";
import { user_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
import { redirect } from "next/navigation";
export default async function Layout({ children }: { children: any }) {
const userId = await User_getUserId();
const userId = await user_getOneUserId();
const dataUser = await user_getOneById(userId);
return (

View File

@@ -2,13 +2,13 @@ import { HomeView } from "@/app_modules/home";
import { cookies } from "next/headers";
import { unsealData } from "iron-session";
import _ from "lodash";
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
import { user_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
import { redirect } from "next/navigation";
import { RouterAdminDashboard } from "@/app/lib/router_hipmi/router_admin";
export default async function Page() {
const userId = await User_getUserId();
const userId = await user_getOneUserId();
const dataUser = await user_getOneById(userId);
if (dataUser?.masterUserRoleId === "2" || dataUser?.masterUserRoleId === "3")