Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/ServiceControl/Licensing/LicenseController.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#nullable enable
namespace ServiceControl.Licensing
{
using System;
using System.IO;
using System.IO.Compression;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -53,7 +51,7 @@ public async Task<ActionResult<LicenseInfo>> License(bool refresh, string client
return licenseInfo;
}

[Authorize(Policy = Permissions.ErrorLicensingView)]
[Authorize(Policy = Permissions.ErrorThroughputView)]
[HttpGet]
[Route("license/details")]
public async Task<ActionResult<LicensedEndpointDetails?>> LicenseDetails(CancellationToken cancellationToken)
Expand All @@ -73,7 +71,7 @@ public async Task<ActionResult<LicenseInfo>> License(bool refresh, string client
return licenseDetails;
}

[Authorize(Policy = Permissions.ErrorLicensingManage)]
[Authorize(Policy = Permissions.ErrorThroughputManage)]
[HttpPost]
[Route("license/detailsUpload")]
public async Task UploadLicenseDetails([FromForm] IFormFile file, CancellationToken cancellationToken)
Expand Down
Loading