Fixed Bug 62394 - Rooms.Hotkeys. Fixed hotkeys rights
This commit is contained in:
parent
e63e71b9fa
commit
144af06c24
@ -58,6 +58,8 @@ const withHotkeys = (Component) => {
|
||||
archiveRooms,
|
||||
isGracePeriod,
|
||||
setInviteUsersWarningDialogVisible,
|
||||
|
||||
security,
|
||||
} = props;
|
||||
|
||||
const hotkeysFilter = {
|
||||
@ -82,7 +84,8 @@ const withHotkeys = (Component) => {
|
||||
isTrashFolder ||
|
||||
isArchiveFolder ||
|
||||
isRoomsFolder ||
|
||||
isVisitor;
|
||||
isVisitor ||
|
||||
!security.Create;
|
||||
|
||||
const onCreate = (extension) => {
|
||||
if (folderWithNoAction) return;
|
||||
@ -360,6 +363,7 @@ const withHotkeys = (Component) => {
|
||||
hotkeyStore,
|
||||
mediaViewerDataStore,
|
||||
treeFoldersStore,
|
||||
selectedFolderStore,
|
||||
}) => {
|
||||
const {
|
||||
setSelected,
|
||||
@ -418,6 +422,8 @@ const withHotkeys = (Component) => {
|
||||
isRoomsFolder,
|
||||
} = treeFoldersStore;
|
||||
|
||||
const security = selectedFolderStore.security;
|
||||
|
||||
return {
|
||||
setSelected,
|
||||
viewAs,
|
||||
@ -469,6 +475,8 @@ const withHotkeys = (Component) => {
|
||||
|
||||
isGracePeriod,
|
||||
setInviteUsersWarningDialogVisible,
|
||||
|
||||
security,
|
||||
};
|
||||
}
|
||||
)(observer(WithHotkeys));
|
||||
|
Loading…
Reference in New Issue
Block a user