diff --git a/Server/Controllers/ShiftController.cs b/Server/Controllers/ShiftController.cs index 18f5428..7d750f5 100644 --- a/Server/Controllers/ShiftController.cs +++ b/Server/Controllers/ShiftController.cs @@ -7,7 +7,7 @@ namespace ShiftScheduler.Server.Controllers { [ApiController] [Route("api/[controller]")] - // [Authorize(Policy = "AllowedEmails")] // Temporarily disabled for testing + [Authorize(Policy = "AllowedEmails")] public class ShiftController : ControllerBase { private readonly IcsExportService _icsService; diff --git a/Shared/TransportModels.cs b/Shared/TransportModels.cs index d0b1c8b..311a684 100644 --- a/Shared/TransportModels.cs +++ b/Shared/TransportModels.cs @@ -17,7 +17,7 @@ namespace ShiftScheduler.Shared public string DepartureTime { get; set; } = string.Empty; public string ArrivalTime { get; set; } = string.Empty; public string Duration { get; set; } = string.Empty; - public string Platform { get; set; } = string.Empty; + public string? Platform { get; set; } = string.Empty; public List Sections { get; set; } = new(); } @@ -38,9 +38,9 @@ namespace ShiftScheduler.Shared public class TransportCheckpoint { public TransportStation? Station { get; set; } - public string Departure { get; set; } = string.Empty; - public string Arrival { get; set; } = string.Empty; - public string Platform { get; set; } = string.Empty; + public string? Departure { get; set; } = string.Empty; + public string? Arrival { get; set; } = string.Empty; + public string? Platform { get; set; } = string.Empty; } public class TransportStation