diff --git a/src/client/web/src/components/state_updater.ts b/src/client/web/src/components/state_updater.ts index efd4a90..773852e 100644 --- a/src/client/web/src/components/state_updater.ts +++ b/src/client/web/src/components/state_updater.ts @@ -539,10 +539,9 @@ export class Updater { this.initUITree(); - const isInSharingMode = this.props.ui.control.controls.get(sharingCtrl); + const isInSharingMode = paramMap.get(shareDirQuery) !== ""; if ( - (this.props.login.userRole === roleVisitor && - isInSharingMode === ctrlOn) || + (this.props.login.userRole === roleVisitor && isInSharingMode) || this.props.login.userRole === roleUser || this.props.login.userRole === roleAdmin ) {