소스 검색

update

tags/Baseline_30082024_FRONTEND_UAT
cyril.tsui 1 년 전
부모
커밋
71516f91db
3개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -1
      src/app/(main)/projects/create/page.tsx
  2. +2
    -2
      src/app/(main)/projects/createSub/page.tsx
  3. +1
    -1
      src/app/(main)/projects/edit/page.tsx

+ 1
- 1
src/app/(main)/projects/create/page.tsx 파일 보기

@@ -28,7 +28,7 @@ const Projects: React.FC = async () => {

const abilities = await getUserAbilities()

if (!abilities.includes(MAINTAIN_PROJECT)) {
if (![MAINTAIN_PROJECT].some(ability => abilities.includes(ability))) {
notFound();
}



+ 2
- 2
src/app/(main)/projects/createSub/page.tsx 파일 보기

@@ -30,9 +30,9 @@ const Projects: React.FC = async () => {
const { t } = await getServerI18n("projects");
const abilities = await getUserAbilities()
if (!abilities.includes(MAINTAIN_PROJECT)) {
if (![MAINTAIN_PROJECT].some(ability => abilities.includes(ability))) {
notFound();
}
}

// Preload necessary dependencies
fetchAllTasks();


+ 1
- 1
src/app/(main)/projects/edit/page.tsx 파일 보기

@@ -36,7 +36,7 @@ const Projects: React.FC<Props> = async ({ searchParams }) => {
const projectId = searchParams["id"];
const abilities = await getUserAbilities()

if (!projectId || isArray(projectId) || abilities.includes(MAINTAIN_PROJECT)) {
if (!projectId || isArray(projectId) || ![MAINTAIN_PROJECT].some(ability => abilities.includes(ability))) {
notFound();
}



불러오는 중...
취소
저장