From d3758d35d2bf59d34415f3f42eb70b8307f0c440 Mon Sep 17 00:00:00 2001 From: EngincanV Date: Thu, 11 Feb 2021 15:47:30 +0300 Subject: [PATCH] Add missing authorization attributes to EventAppService --- src/EventHub.Application/Events/EventAppService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EventHub.Application/Events/EventAppService.cs b/src/EventHub.Application/Events/EventAppService.cs index 324216b..9af1a05 100644 --- a/src/EventHub.Application/Events/EventAppService.cs +++ b/src/EventHub.Application/Events/EventAppService.cs @@ -198,6 +198,7 @@ namespace EventHub.Events return CurrentUser.Id.HasValue && organization.OwnerUserId == CurrentUser.GetId(); } + [Authorize] public async Task UpdateAsync(Guid id, UpdateEventDto input) { var @event = await _eventRepository.GetAsync(id); @@ -224,6 +225,7 @@ namespace EventHub.Events await _eventRepository.UpdateAsync(updatedEvent); } + [Authorize] public async Task UpdateEventTimingAsync(Guid id, UpdateEventTimingDto input) { var @event = await _eventRepository.GetAsync(id);