Skip to content

Commit

Permalink
feat: allow tin to receive to search
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Jul 13, 2024
1 parent a635c5c commit 3b77a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/Modules/Bookings/API/V1/BookingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ IAuthHelper helper
public async Task<ActionResult<IEnumerable<BookingPrincipalRes>>> Search([FromQuery] SearchBookingQuery query)
{
var x = await this
.GuardOrAnyAsync(query.UserId, AuthRoles.Field, AuthRoles.Admin)
.GuardOrAnyAsync(query.UserId, AuthRoles.Field, AuthRoles.Admin, AuthRoles.Tin)
.ThenAwait(_ => bookingSearchQueryValidator.ValidateAsyncResult(query, "Invalid SearchBookingQuery"))
.ThenAwait(q => service.Search(q.ToDomain()))
.Then(x => x.Select(u => u.ToRes()), Errors.MapAll)
Expand Down

0 comments on commit 3b77a5d

Please sign in to comment.