summaryrefslogtreecommitdiff
path: root/Controllers/RafflesController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Controllers/RafflesController.cs')
-rw-r--r--Controllers/RafflesController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Controllers/RafflesController.cs b/Controllers/RafflesController.cs
index c649b70..aff4085 100644
--- a/Controllers/RafflesController.cs
+++ b/Controllers/RafflesController.cs
@@ -68,7 +68,7 @@ namespace BackendPIA.Controllers {
return StatusCode(303, new { Message = "The resource has been deleted"} );
}
- [Authorize]
+ [Authorize(Policy = "ValidToken")]
[HttpGet("{id:int}/available_tickets")]
public async Task<ActionResult<IEnumerable<int>>> AvailableTickets(long id) {
IEnumerable<int> available_tickets = from number in Enumerable.Range(1, 54) select number;