Web:Client:Store:ProfileActionsStore Fixed bug 61959

This commit is contained in:
Akmal Isomadinov 2023-04-06 15:13:50 +05:00
parent 7e7f07cf67
commit 927028665f

View File

@ -94,8 +94,9 @@ class ProfileActionsStore {
onProfileClick = () => {
//TODO: add check manager
const { isAdmin, isOwner } = this.authStore.userStore.user;
const { isRoomAdmin } = this.authStore;
if (isAdmin || isOwner) {
if (isAdmin || isOwner || isRoomAdmin) {
this.selectedFolderStore.setSelectedFolder(null);
this.treeFoldersStore.setSelectedNode(["accounts"]);
}