Web: Added additional conditions added.
This commit is contained in:
parent
a423fcd50b
commit
c3ffe890ab
@ -257,14 +257,21 @@ class AccessRightsStore {
|
||||
return deleteSelf || deleteAlien;
|
||||
};
|
||||
|
||||
canCopyItems = (room) => {
|
||||
const { rootFolderType } = room;
|
||||
canCopyItems = (item) => {
|
||||
const { rootFolderType, access, editing: fileEditing } = item;
|
||||
|
||||
if (rootFolderType === FolderType.Archive) return false;
|
||||
if (
|
||||
rootFolderType === FolderType.TRASH ||
|
||||
rootFolderType === FolderType.Favorites ||
|
||||
rootFolderType === FolderType.Recent ||
|
||||
rootFolderType === FolderType.Privacy ||
|
||||
fileEditing
|
||||
)
|
||||
return false;
|
||||
|
||||
const { copyFromPersonal } = getFileRoleActions(room.access);
|
||||
const { canCopy } = getFileRoleActions(access);
|
||||
|
||||
return copyFromPersonal;
|
||||
return canCopy;
|
||||
};
|
||||
|
||||
canChangeUserType = (user) => {
|
||||
|
Loading…
Reference in New Issue
Block a user