Web:Client:Store:ProfileActionsStore Fixed bug 61959
This commit is contained in:
parent
7e7f07cf67
commit
927028665f
@ -94,8 +94,9 @@ class ProfileActionsStore {
|
|||||||
onProfileClick = () => {
|
onProfileClick = () => {
|
||||||
//TODO: add check manager
|
//TODO: add check manager
|
||||||
const { isAdmin, isOwner } = this.authStore.userStore.user;
|
const { isAdmin, isOwner } = this.authStore.userStore.user;
|
||||||
|
const { isRoomAdmin } = this.authStore;
|
||||||
|
|
||||||
if (isAdmin || isOwner) {
|
if (isAdmin || isOwner || isRoomAdmin) {
|
||||||
this.selectedFolderStore.setSelectedFolder(null);
|
this.selectedFolderStore.setSelectedFolder(null);
|
||||||
this.treeFoldersStore.setSelectedNode(["accounts"]);
|
this.treeFoldersStore.setSelectedNode(["accounts"]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user