mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-12-27 00:34:30 +01:00
Fixed: Correct Attribute compare for Id validation
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user