This commit is contained in:
2020-03-17 23:16:02 +00:00
parent edc3d58231
commit d0e3ed61e8

View File

@@ -81,7 +81,7 @@ namespace AyaNova.Api.Controllers
if (PickList == null)
return NotFound(new ApiErrorResponse(ApiErrorCode.NOT_FOUND));
//check rights
//RIGHTS - NOTE: uniquely to other routes this one checks the actual picklist defined roles itself
if (!Authorized.HasAnyRole(HttpContext.Items, PickList.AllowedRoles))
return StatusCode(403, new ApiNotAuthorizedResponse());