Skip to content

Commit c5641d0

Browse files
committed
add attribute to all functions
1 parent e90011c commit c5641d0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

application/CohortManager/src/Functions/screeningDataServices/GetValidationExceptions/GetValidationExceptions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ private HttpResponseData CreatePaginatedResponse(HttpRequestData request, IQuery
102102
/// Updates the ServiceNowId for a specific validation exception.
103103
/// </summary>
104104
[Function(nameof(UpdateExceptionServiceNowId))]
105+
[Authentication(Role.CohortManagerUser)]
105106
public async Task<HttpResponseData> UpdateExceptionServiceNowId([HttpTrigger(AuthorizationLevel.Anonymous, "put")] HttpRequestData req)
106107
{
107108
try
@@ -139,6 +140,7 @@ public async Task<HttpResponseData> UpdateExceptionServiceNowId([HttpTrigger(Aut
139140
/// Retrieves validation exceptions and reports by search type (NHS Number or Exception ID).
140141
/// </summary>
141142
[Function(nameof(GetValidationExceptionsByType))]
143+
[Authentication(Role.CohortManagerUser)]
142144
public async Task<HttpResponseData> GetValidationExceptionsByType([HttpTrigger(AuthorizationLevel.Anonymous, "get")] HttpRequestData req)
143145
{
144146
var searchType = HttpParserHelper.GetEnumQueryParameter(req, "searchType", SearchType.NhsNumber);

0 commit comments

Comments
 (0)