diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index fe9a93a5ab7..6efab8fa85d 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -38,6 +38,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released - Fixed a bug where direct task assignment to a single user would fail. [#6777](https://github.com/scalableminds/webknossos/pull/6777) - Fixed a bug where the dataset folders view would not list public datasets if the requesting user could not also access the dataset for other reasons, like being admin. [#6759](https://github.com/scalableminds/webknossos/pull/6759) - Fixed a bug where zarr-streamed datasets would produce (very rare) rendering errors. [#6782](https://github.com/scalableminds/webknossos/pull/6782) +- Fixed a bug where publicly shared annotations were not viewable by users without an account. [#6784](https://github.com/scalableminds/webknossos/pull/6784) ### Removed diff --git a/frontend/javascripts/components/secured_route.tsx b/frontend/javascripts/components/secured_route.tsx index ad7ad6b03ad..6aef667ad8a 100644 --- a/frontend/javascripts/components/secured_route.tsx +++ b/frontend/javascripts/components/secured_route.tsx @@ -9,7 +9,6 @@ import { PageUnavailableForYourPlanView } from "components/pricing_enforcers"; import type { ComponentType } from "react"; import type { RouteComponentProps } from "react-router-dom"; import type { OxalisState } from "oxalis/store"; -import { enforceActiveOrganization } from "oxalis/model/accessors/organization_accessors"; type StateProps = { activeOrganization: APIOrganization | null; @@ -69,10 +68,15 @@ class SecuredRoute extends React.PureComponent { return ; } - const organization = enforceActiveOrganization(this.props.activeOrganization); if ( this.props.requiredPricingPlan && - !isPricingPlanGreaterEqualThan(organization.pricingPlan, this.props.requiredPricingPlan) + !( + this.props.activeOrganization && + isPricingPlanGreaterEqualThan( + this.props.activeOrganization.pricingPlan, + this.props.requiredPricingPlan, + ) + ) ) { return ; }