permissions fix

master
Tudor Stanciu 2023-04-18 02:51:52 +03:00
parent 2b6751335f
commit 41656b1363
1 changed files with 2 additions and 1 deletions

View File

@ -5,8 +5,9 @@ import { usePermissions } from "../../../hooks";
import NotAllowed from "../../../components/common/NotAllowed";
const NetworkContainer = () => {
const { viewMachines } = usePermissions();
const { loading, viewMachines } = usePermissions();
if (loading) return "";
if (!viewMachines) return <NotAllowed />;
return (