Files: fixed form saving for mobile app

This commit is contained in:
Maksim Chegulov 2023-05-31 17:21:19 +03:00
parent 4a30acc5a6
commit f5f5b851de

View File

@ -1358,7 +1358,7 @@ public class EntryManager
throw new FileNotFoundException(FilesCommonResource.ErrorMassage_FileNotFound);
}
if (checkRight && !editLink && (!await _fileSecurity.CanEditAsync(file) || _userManager.IsUser(_authContext.CurrentAccount.ID)))
if (checkRight && !editLink && (!await _fileSecurity.CanFillFormsAsync(file) || _userManager.IsUser(_authContext.CurrentAccount.ID)))
{
throw new SecurityException(FilesCommonResource.ErrorMassage_SecurityException_EditFile);
}