From 5d2fefde8f1ab044e7834dd8bcc536036364e9e8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 30 Nov 2022 22:09:18 -0600 Subject: [PATCH] Fixed: Correct Attribute compare for Id validation --- src/Prowlarr.Http/REST/RestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Prowlarr.Http/REST/RestController.cs b/src/Prowlarr.Http/REST/RestController.cs index 7992f6f6f..30f19110a 100644 --- a/src/Prowlarr.Http/REST/RestController.cs +++ b/src/Prowlarr.Http/REST/RestController.cs @@ -62,7 +62,7 @@ namespace Prowlarr.Http.REST } var attributes = descriptor.MethodInfo.CustomAttributes; - if (attributes.Any(x => VALIDATE_ID_ATTRIBUTES.Contains(x.GetType())) && !skipValidate) + if (attributes.Any(x => VALIDATE_ID_ATTRIBUTES.Contains(x.AttributeType)) && !skipValidate) { if (context.ActionArguments.TryGetValue("id", out var idObj)) {