diff --git a/src/Api/AdminConsole/Authorization/AuthorizeAttribute.cs b/src/Api/AdminConsole/Authorization/AuthorizeAttribute.cs index 9be09d30cd..1f864ece66 100644 --- a/src/Api/AdminConsole/Authorization/AuthorizeAttribute.cs +++ b/src/Api/AdminConsole/Authorization/AuthorizeAttribute.cs @@ -16,6 +16,6 @@ public class AuthorizeAttribute public IEnumerable GetRequirements() { var requirement = new T(); - yield return requirement; + return [requirement]; } }