diff --git a/Modules/Authentication/RequireRoleAttribute.cs b/Modules/Authentication/RequireRoleAttribute.cs index 9bacfb43..3bd95eec 100644 --- a/Modules/Authentication/RequireRoleAttribute.cs +++ b/Modules/Authentication/RequireRoleAttribute.cs @@ -8,7 +8,7 @@ namespace GenHTTP.Modules.Authentication; /// if the authenticated user has the specified roles. /// /// The roles which need to be present in order to let the request pass -[AttributeUsage(AttributeTargets.Method)] +[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] public class RequireRoleAttribute(params string[] roles) : InterceptWithAttribute { diff --git a/Modules/Reflection/InterceptWithAttribute.cs b/Modules/Reflection/InterceptWithAttribute.cs index 5c5b1638..a566ab1f 100644 --- a/Modules/Reflection/InterceptWithAttribute.cs +++ b/Modules/Reflection/InterceptWithAttribute.cs @@ -9,7 +9,7 @@ /// /// Allows to implement concerns on operation level such as authorization. /// -[AttributeUsage(AttributeTargets.Method)] +[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] public class InterceptWithAttribute : Attribute where T : IOperationInterceptor, new() {