Browse Source

Add missing authorization attributes to EventAppService

pull/21/head
EngincanV 6 years ago
parent
commit
d3758d35d2
  1. 2
      src/EventHub.Application/Events/EventAppService.cs

2
src/EventHub.Application/Events/EventAppService.cs

@ -198,6 +198,7 @@ namespace EventHub.Events
return CurrentUser.Id.HasValue && organization.OwnerUserId == CurrentUser.GetId(); return CurrentUser.Id.HasValue && organization.OwnerUserId == CurrentUser.GetId();
} }
[Authorize]
public async Task UpdateAsync(Guid id, UpdateEventDto input) public async Task UpdateAsync(Guid id, UpdateEventDto input)
{ {
var @event = await _eventRepository.GetAsync(id); var @event = await _eventRepository.GetAsync(id);
@ -224,6 +225,7 @@ namespace EventHub.Events
await _eventRepository.UpdateAsync(updatedEvent); await _eventRepository.UpdateAsync(updatedEvent);
} }
[Authorize]
public async Task UpdateEventTimingAsync(Guid id, UpdateEventTimingDto input) public async Task UpdateEventTimingAsync(Guid id, UpdateEventTimingDto input)
{ {
var @event = await _eventRepository.GetAsync(id); var @event = await _eventRepository.GetAsync(id);

Loading…
Cancel
Save