fix(fe/state_updater): sharingCtrl is not set before initCwd
This commit is contained in:
parent
55f45b6c57
commit
ce389b6154
1 changed files with 2 additions and 3 deletions
|
@ -539,10 +539,9 @@ export class Updater {
|
||||||
|
|
||||||
this.initUITree();
|
this.initUITree();
|
||||||
|
|
||||||
const isInSharingMode = this.props.ui.control.controls.get(sharingCtrl);
|
const isInSharingMode = paramMap.get(shareDirQuery) !== "";
|
||||||
if (
|
if (
|
||||||
(this.props.login.userRole === roleVisitor &&
|
(this.props.login.userRole === roleVisitor && isInSharingMode) ||
|
||||||
isInSharingMode === ctrlOn) ||
|
|
||||||
this.props.login.userRole === roleUser ||
|
this.props.login.userRole === roleUser ||
|
||||||
this.props.login.userRole === roleAdmin
|
this.props.login.userRole === roleAdmin
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue