Skip to content

Commit

Permalink
fix Bug 65569
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbannov committed Dec 19, 2023
1 parent b51b04b commit c739091
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions products/ASC.Files/Server/Api/EditorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,19 +326,22 @@ public class EditorController : ApiControllerBase
private readonly MessageService _messageService;
private readonly DocumentServiceConnector _documentServiceConnector;
private readonly CommonLinkUtility _commonLinkUtility;
private readonly PermissionContext _permissionContext;

public EditorController(
FilesLinkUtility filesLinkUtility,
MessageService messageService,
DocumentServiceConnector documentServiceConnector,
CommonLinkUtility commonLinkUtility,
FolderDtoHelper folderDtoHelper,
FileDtoHelper fileDtoHelper) : base(folderDtoHelper, fileDtoHelper)
FileDtoHelper fileDtoHelper,
PermissionContext permissionContext) : base(folderDtoHelper, fileDtoHelper)
{
_filesLinkUtility = filesLinkUtility;
_messageService = messageService;
_documentServiceConnector = documentServiceConnector;
_commonLinkUtility = commonLinkUtility;
_permissionContext = permissionContext;
}


Expand All @@ -354,7 +357,9 @@ public EditorController(
/// <collection>list</collection>
[HttpPut("docservice")]
public async Task<IEnumerable<string>> CheckDocServiceUrl(CheckDocServiceUrlRequestDto inDto)
{
{
await _permissionContext.DemandPermissionsAsync(SecurityConstants.EditPortalSettings);

_filesLinkUtility.DocServiceUrl = inDto.DocServiceUrl;
_filesLinkUtility.DocServiceUrlInternal = inDto.DocServiceUrlInternal;
_filesLinkUtility.DocServicePortalUrl = inDto.DocServiceUrlPortal;
Expand Down

0 comments on commit c739091

Please sign in to comment.