- {tabList.map((tab) => (
-
setTabView(tab.id)}
- >
-
{tab.icon}
-
{tab.name}
-
- ))}
+ {tabList.map(
+ (tab) =>
+ tab.permission && (
+
setTabView(tab.id)}
+ >
+
{tab.icon}
+
{tab.name}
+
+ ),
+ )}
diff --git a/src/frontend/src/views/Organisation.tsx b/src/frontend/src/views/Organisation.tsx
index 8f183dcf1f..632810cdef 100644
--- a/src/frontend/src/views/Organisation.tsx
+++ b/src/frontend/src/views/Organisation.tsx
@@ -241,6 +241,7 @@ const Organisation = () => {
)
) : null}
diff --git a/src/frontend/src/views/ProjectDetailsV2.tsx b/src/frontend/src/views/ProjectDetailsV2.tsx
index db67a2ff80..18ddecbc79 100644
--- a/src/frontend/src/views/ProjectDetailsV2.tsx
+++ b/src/frontend/src/views/ProjectDetailsV2.tsx
@@ -76,6 +76,7 @@ const Home = () => {
const mapTheme = useAppSelector((state) => state.theme.hotTheme);
const geolocationStatus = useAppSelector((state) => state.project.geolocationStatus);
const projectDetailsLoading = useAppSelector((state) => state?.project?.projectDetailsLoading);
+ const token = CoreModules.useAppSelector((state) => state.login.loginToken);
//snackbar handle close funtion
const handleClose = (event, reason) => {
@@ -303,13 +304,15 @@ const Home = () => {
) : (
{`#${state.projectInfo.id}`}
)}
-
}
- onClick={() => navigate(`/manage-project/${params?.id}`)}
- />
+ {token && (
+
}
+ onClick={() => navigate(`/manage-project/${params?.id}`)}
+ />
+ )}
{projectDetailsLoading ? (
@@ -361,30 +364,32 @@ const Home = () => {
/>
)}
-
-
- {featuresLayer != undefined && (
+ {featuresLayer != undefined && token && (