fix: No Permissions page vs. 404 page
@@ -962,7 +962,6 @@ const ProjectDetails: React.FC = () => {
return { items: menuItems, onClick: onItemClick };
};
- if (!canViewWorkspaces) return <NoPermissions />;
return (
<div className={css.tabOptions}>
<Space className={css.actionList}>
@@ -1098,6 +1097,7 @@ const ProjectDetails: React.FC = () => {
);
}
+ if (!canViewWorkspaces) return <NoPermissions />;
if (project && !canViewWorkspace({ workspace: { id: project.workspaceId } })) {
return <PageNotFound />;
}
