Files: fix

This commit is contained in:
Maksim Chegulov 2022-10-12 17:05:12 +03:00
parent b8486d22de
commit f23b5efb52

View File

@ -676,7 +676,10 @@ public class FileSecurity : IFileSecurity
var parentRoom = await _daoFactory.GetFolderDao<T>().GetParentFoldersAsync(e.ParentId)
.Where(f => DocSpaceHelper.IsRoom(f.FolderType) && f.CreateBy == userId).FirstOrDefaultAsync();
return parentRoom != null;
if (parentRoom != null)
{
return true;
}
}
if (e.RootFolderType == FolderType.ThirdpartyBackup && isAdmin)