forked from baron/baron-sso
feat: enforce tenant isolation for audit logs and enhance user list filtering for multi-tenant admins
This commit is contained in:
@@ -1253,7 +1253,7 @@ func (h *DevHandler) ListAuditLogs(c *fiber.Ctx) error {
|
||||
const maxScan = 3000
|
||||
|
||||
for len(collected) < limit+1 && scanned < maxScan {
|
||||
page, findErr := h.AuditRepo.FindPage(c.Context(), pageSize, nextCursor)
|
||||
page, findErr := h.AuditRepo.FindPage(c.Context(), pageSize, nextCursor, tenantFilter)
|
||||
if findErr != nil {
|
||||
return errorJSON(c, fiber.StatusInternalServerError, "Failed to retrieve audit logs")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user