diff --git a/src/API/CompanyName.MyMeetings.API/Configuration/Authorization/HasPermissionAuthorizationHandler.cs b/src/API/CompanyName.MyMeetings.API/Configuration/Authorization/HasPermissionAuthorizationHandler.cs index 4a25c6cd..82b1de0b 100644 --- a/src/API/CompanyName.MyMeetings.API/Configuration/Authorization/HasPermissionAuthorizationHandler.cs +++ b/src/API/CompanyName.MyMeetings.API/Configuration/Authorization/HasPermissionAuthorizationHandler.cs @@ -40,7 +40,9 @@ private Task AuthorizeAsync(string permission, List per #if !DEBUG return Task.FromResult(true); #endif +#pragma warning disable CS0162 // Unreachable code detected return Task.FromResult(permissions.Any(x => x.Code == permission)); +#pragma warning restore CS0162 // Unreachable code detected } } } \ No newline at end of file