diff --git a/src/pages/Tenant/TenantPage.jsx b/src/pages/Tenant/TenantPage.jsx
index 22eb6de0..03b52877 100644
--- a/src/pages/Tenant/TenantPage.jsx
+++ b/src/pages/Tenant/TenantPage.jsx
@@ -16,6 +16,8 @@ import {
import TenantFilterPanel from "../../components/Tenant/TenantFilterPanel";
import { useDispatch } from "react-redux";
import { setCurrentTenant } from "../../slices/globalVariablesSlice";
+import { hasUserPermission } from "../../utils/authUtils";
+import { SUPPER_TENANT, VIEW_TENANTS } from "../../utils/constants";
// This is context that wrapping all components tenant releated , but must pass inside 'TenantContext.Provider'
export const TenantContext = createContext();
@@ -37,6 +39,8 @@ const TenantPage = () => {
const contextValue = {
};
const navigate = useNavigate();
+ const IsSupperTenant = hasUserPermission(SUPPER_TENANT)
+ const IsViewTenant = hasUserPermission(VIEW_TENANTS)
const { setOffcanvasContent, setShowTrigger } = useFab();
@@ -88,7 +92,8 @@ const handleNewTenant =()=>{
Refresh
-
+ )}
-
-
Access Denied: You don't have permission to perform this action. !
+