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();
|
||||
|
||||
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
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue