Skip to content

Commit

Permalink
fixed inability to open form
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksimChegulov committed Oct 1, 2024
1 parent 6fe5e33 commit 4858b5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions products/ASC.Files/Core/Core/Security/FileSecurity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1203,12 +1203,10 @@ FilesSecurityActions.Rename or
var fileType = FileUtility.GetFileTypeByFileName(file.Title);
if (fileType is FileType.Pdf or FileType.Spreadsheet)
{
var folderDao = daoFactory.GetFolderDao<T>();
var parentFolders = await GetFileParentFolders(file.ParentId);

if (parentFolders.Exists(parent => parent.FolderType is FolderType.ReadyFormFolder or FolderType.InProcessFormFolder))
{
if (ace is { Share: FileShare.FillForms } && authContext.CurrentAccount.ID != file.CreateBy)
if (ace is { Share: FileShare.FillForms } && userId != file.CreateBy)
{
return false;
}
Expand Down

0 comments on commit 4858b5f

Please sign in to comment.