diff --git a/products/ASC.Files/Core/Core/Security/FileSecurity.cs b/products/ASC.Files/Core/Core/Security/FileSecurity.cs index dc72e36e10..cba9dafdb8 100644 --- a/products/ASC.Files/Core/Core/Security/FileSecurity.cs +++ b/products/ASC.Files/Core/Core/Security/FileSecurity.cs @@ -676,7 +676,10 @@ public class FileSecurity : IFileSecurity var parentRoom = await _daoFactory.GetFolderDao().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)