tenant fixes

This commit is contained in:
master
2026-02-23 23:44:50 +02:00
parent bdb1438654
commit 4f947a8b61
159 changed files with 1064 additions and 556 deletions

View File

@@ -9,6 +9,7 @@ using Microsoft.AspNetCore.Mvc;
using StellaOps.Unknowns.Core.Models;
using StellaOps.Unknowns.Core.Repositories;
using StellaOps.Unknowns.WebService.Security;
using StellaOps.Auth.ServerIntegration.Tenancy;
namespace StellaOps.Unknowns.WebService.Endpoints;
@@ -24,7 +25,8 @@ public static class GreyQueueEndpoints
{
var group = routes.MapGroup("/api/grey-queue")
.WithTags("GreyQueue")
.RequireAuthorization(UnknownsPolicies.Read);
.RequireAuthorization(UnknownsPolicies.Read)
.RequireTenant();
// List and query
group.MapGet("/", ListEntries)