permission handling

This commit is contained in:
Paul Schneider 2025-02-23 20:23:23 +00:00
commit 71262647b3
27 changed files with 243 additions and 288 deletions

View file

@ -64,7 +64,7 @@ namespace Yavsc.Controllers
{
return NotFound();
}
if (authorizationService.AuthorizeAsync(User, estimate, new ViewRequirement()).IsFaulted)
if (authorizationService.AuthorizeAsync(User, estimate, new ReadPermission()).IsFaulted)
{
return new ChallengeResult();
}