mirror of
https://dev.azure.com/tstanciu94/NetworkResurrector/_git/NetworkResurrector
synced 2025-06-21 19:17:04 +03:00
permissions fix
This commit is contained in:
parent
2b6751335f
commit
41656b1363
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user