Skip to content

Commit

Permalink
Merge pull request #100 from ONLYOFFICE/bugfix/65357
Browse files Browse the repository at this point in the history
Bugfix/65357
  • Loading branch information
pavelbannov authored Dec 5, 2023
2 parents 41c7b4e + ae6ce0e commit 60e7c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion products/ASC.Files/Core/Utils/EntryManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ public async Task<File<T>> SaveEditingAsync<T>(T fileId, string fileExtension, s
throw new FileNotFoundException(FilesCommonResource.ErrorMassage_FileNotFound);
}

if (checkRight && !editLink && (!await _fileSecurity.CanFillFormsAsync(file) || await _userManager.IsUserAsync(_authContext.CurrentAccount.ID)))
if (checkRight && !editLink && (!await _fileSecurity.CanFillFormsAsync(file) || !await _fileSecurity.CanEditAsync(file)))
{
throw new SecurityException(FilesCommonResource.ErrorMassage_SecurityException_EditFile);
}
Expand Down

0 comments on commit 60e7c2e

Please sign in to comment.