Skip to content

Commit

Permalink
adjusted permissions (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
aniri authored Dec 1, 2020
1 parent 8cd2f3e commit e9b9896
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public PollingStationController(IMediator mediator, IMapper mapper, IFileLoader
/// <param name="pollingStationInfo">Info about the polling station and its' allocated observer</param>
/// <returns></returns>
[HttpPost]
[Authorize("Organizer")]
[Authorize]
public async Task<IAsyncResult> Register([FromBody] AddPollingStationInfo pollingStationInfo)
{
if (!ModelState.IsValid)
Expand All @@ -66,7 +66,7 @@ public async Task<IAsyncResult> Register([FromBody] AddPollingStationInfo pollin
/// <param name="pollingStationInfo">Polling station id, county code, leave time</param>
/// <returns></returns>
[HttpPut]
[Authorize("Organizer")]
[Authorize]
public async Task<IAsyncResult> Update([FromBody] UpdatePollingStationInfo pollingStationInfo)
{
if (!ModelState.IsValid)
Expand Down

0 comments on commit e9b9896

Please sign in to comment.