Merge pull request #1728 from ONLYOFFICE/bugfix/folder-restore

Bugfix/folder restore
This commit is contained in:
Pavel Bannov 2023-09-11 02:11:24 -07:00 committed by GitHub
commit 0510210a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,7 @@ class FileMoveCopyOperation<T> : FileOperation<FileMoveCopyOperationData<T>, T>
{
this[Err] = FilesCommonResource.ErrorMassage_SecurityException_MoveFolder;
}
else if (checkPermissions && !await FilesSecurity.CanDownloadAsync(folder))
else if (checkPermissions && folder.RootFolderType != FolderType.TRASH && !await FilesSecurity.CanDownloadAsync(folder))
{
this[Err] = FilesCommonResource.ErrorMassage_SecurityException;
}