Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix viewing of public datasets #7010

Merged
merged 2 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- Fixed misleading email about successful dataset upload, which was in some cases sent even for unusable datasets. [#6977](https://github.com/scalableminds/webknossos/pull/6977)
- Fixed upload of skeleton annotations with no trees, only bounding boxes, being incorrectly rejected. [#6985](https://github.com/scalableminds/webknossos/pull/6985)
- Fixed that Google Cloud Storage URLs with bucket names containing underscores could not be parsed. [#6998](https://github.com/scalableminds/webknossos/pull/6998)
- Fixed regression that caused public datasets to crash when not being logged in. [#7010](https://github.com/scalableminds/webknossos/pull/7010)

### Removed

Expand Down
3 changes: 1 addition & 2 deletions frontend/javascripts/oxalis/model_initialization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ import {
setActiveConnectomeAgglomerateIdsAction,
updateCurrentConnectomeFileAction,
} from "oxalis/model/actions/connectome_actions";
import { enforceActiveOrganization } from "./model/accessors/organization_accessors";
import {
PricingPlanEnum,
isFeatureAllowedByPricingPlan,
Expand Down Expand Up @@ -777,7 +776,7 @@ async function applyLayerState(stateByLayer: UrlStateByLayer) {
function enforcePricingRestrictionsOnUserConfiguration(
userConfiguration: UserConfiguration,
): UserConfiguration {
const activeOrganization = enforceActiveOrganization(Store.getState().activeOrganization);
const activeOrganization = Store.getState().activeOrganization;
if (!isFeatureAllowedByPricingPlan(activeOrganization, PricingPlanEnum.Team)) {
return {
...userConfiguration,
Expand Down