@sevenfold/setto-client 0.25.3 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35891,7 +35891,7 @@ function SettoProvider({ config, children }) {
35891
35891
  assetStoreRef.current = new AssetStore();
35892
35892
  setStoreReady(true);
35893
35893
  }, [i18n, config.theme]);
35894
- const editMode = !!session && !!access.currentSite && !onAdminRoute && !authLoading && !access.loading;
35894
+ const editMode = !!session && access.currentSite?.status === "live" && !onAdminRoute && !authLoading && !access.loading;
35895
35895
  const [selectedSectionId, setSelectedSectionId] = useState(null);
35896
35896
  const selectSection = useCallback((id) => setSelectedSectionId(id), []);
35897
35897
  const [guestEdit, setGuestEdit] = useState(false);