misc
This commit is contained in:
parent
31d4f74e6d
commit
253a2919f3
36 changed files with 328 additions and 146 deletions
|
|
@ -37,7 +37,7 @@ namespace Yavsc.Controllers
|
|||
}
|
||||
// GET: api/Estimate{?ownerId=User.GetUserId()}
|
||||
[HttpGet]
|
||||
public IActionResult GetEstimates(string ownerId = null)
|
||||
public IActionResult GetEstimates(string? ownerId = null)
|
||||
{
|
||||
if (ownerId == null) ownerId = User.GetUserId();
|
||||
else if (!UserIsAdminOrThis(ownerId)) // throw new Exception("Not authorized") ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue