|
|
@@ -37,8 +37,10 @@ import EmojiEventsIcon from "@mui/icons-material/EmojiEvents"; |
|
|
|
import { |
|
|
|
GENERATE_REPORTS, |
|
|
|
MAINTAIN_MASTERDATA, |
|
|
|
MAINTAIN_PROJECT, |
|
|
|
MAINTAIN_USER, |
|
|
|
VIEW_MASTERDATA, |
|
|
|
VIEW_PROJECT, |
|
|
|
VIEW_USER, |
|
|
|
} from "@/middleware"; |
|
|
|
import { SessionWithAbilities } from "../AppBar/NavigationToggle"; |
|
|
@@ -131,7 +133,7 @@ const NavigationContent: React.FC<Props> = ({ abilities }) => { |
|
|
|
// }, |
|
|
|
// ], |
|
|
|
// }, |
|
|
|
{ icon: <Assignment />, label: "Project Management", path: "/projects" }, |
|
|
|
{ icon: <Assignment />, label: "Project Management", path: "/projects", isHidden: ![VIEW_PROJECT, MAINTAIN_PROJECT].some((ability) => abilities?.includes(ability)) }, |
|
|
|
{ icon: <Task />, label: "Task Template", path: "/tasks" }, |
|
|
|
{ icon: <Payments />, label: "Invoice", path: "/invoice" }, |
|
|
|
{ |
|
|
|