diff options
Diffstat (limited to 'Controllers/PrizesController.cs')
-rw-r--r-- | Controllers/PrizesController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Controllers/PrizesController.cs b/Controllers/PrizesController.cs index 0707697..cd3f50f 100644 --- a/Controllers/PrizesController.cs +++ b/Controllers/PrizesController.cs @@ -39,7 +39,7 @@ namespace BackendPIA.Controllers { } [HttpPost] - [Authorize(Roles = "Administrator")] + [Authorize(Roles = "Administrator", Policy = "ValidToken")] public async Task<ActionResult<Prize>> Create(PrizeForm form) { if(!_context.Raffles.Any(r => r.Id == form.RaffleId)) return BadRequest(new NotFoundError(404, $"The raffle with id {form.RaffleId} couldn't be found")); |