tenant fixes
This commit is contained in:
@@ -5,6 +5,7 @@ using StellaOps.Timeline.Core;
|
||||
using StellaOps.Timeline.Core.Export;
|
||||
using StellaOps.HybridLogicalClock;
|
||||
using StellaOps.Timeline.WebService.Security;
|
||||
using StellaOps.Auth.ServerIntegration.Tenancy;
|
||||
|
||||
namespace StellaOps.Timeline.WebService.Endpoints;
|
||||
|
||||
@@ -20,7 +21,8 @@ public static class ExportEndpoints
|
||||
{
|
||||
var group = app.MapGroup("/api/v1/timeline")
|
||||
.WithTags("Export")
|
||||
.RequireAuthorization(TimelinePolicies.Write);
|
||||
.RequireAuthorization(TimelinePolicies.Write)
|
||||
.RequireTenant();
|
||||
|
||||
group.MapPost("/{correlationId}/export", ExportTimelineAsync)
|
||||
.WithName("ExportTimeline")
|
||||
|
||||
Reference in New Issue
Block a user