upd: akses user role developer
Deskripsi: - update akses list divisi - update akses detail divisi - update akses tambah divisi - update akses laporan divisi No Issues
This commit is contained in:
@@ -3,7 +3,6 @@ import { globalRole, TEMA } from '@/module/_global';
|
||||
import { useHookstate } from '@hookstate/core';
|
||||
import { Box, Flex, SimpleGrid, Stack, Text } from '@mantine/core';
|
||||
import { useRouter, useSearchParams } from 'next/navigation';
|
||||
import React from 'react';
|
||||
import { HiOutlineFilter } from 'react-icons/hi';
|
||||
import { IoAddCircle } from 'react-icons/io5';
|
||||
import { TbReportAnalytics } from "react-icons/tb";
|
||||
@@ -18,9 +17,7 @@ export default function DrawerDivision() {
|
||||
return (
|
||||
<Box>
|
||||
<Stack pt={10}>
|
||||
<SimpleGrid
|
||||
cols={{ base: 3, sm: 3, lg: 3 }}
|
||||
>
|
||||
<SimpleGrid cols={{ base: 3, sm: 3, lg: 3 }} >
|
||||
<Flex onClick={() => router.push('/division/create')} justify={'center'} align={'center'} direction={'column'} >
|
||||
<Box>
|
||||
<IoAddCircle size={30} color={tema.get().utama} />
|
||||
@@ -30,7 +27,7 @@ export default function DrawerDivision() {
|
||||
</Box>
|
||||
</Flex>
|
||||
{
|
||||
roleLogin.get() == "supadmin" &&
|
||||
(roleLogin.get() == "supadmin" || roleLogin.get() == "developer") &&
|
||||
<Flex onClick={() => {
|
||||
router.push('/division?page=filter&group=' + group)
|
||||
}} justify={'center'} align={'center'} direction={'column'} >
|
||||
@@ -44,7 +41,7 @@ export default function DrawerDivision() {
|
||||
}
|
||||
|
||||
{
|
||||
(roleLogin.get() == "supadmin" || roleLogin.get() == "cosupadmin") &&
|
||||
(roleLogin.get() == "supadmin" || roleLogin.get() == "cosupadmin" || roleLogin.get() == "developer") &&
|
||||
<Flex onClick={() => {
|
||||
router.push('/division?page=report')
|
||||
}} justify={'center'} align={'center'} direction={'column'} >
|
||||
|
||||
Reference in New Issue
Block a user