From dac4985b8d27023595fe0cb9d394e517de65f399 Mon Sep 17 00:00:00 2001 From: Cregg Hancock Date: Mon, 8 May 2023 17:11:34 -0500 Subject: [PATCH] Add params array constructor to SupportedModulesAttribute --- DNN Platform/DotNetNuke.Web/Api/SupportedModulesAttribute.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DNN Platform/DotNetNuke.Web/Api/SupportedModulesAttribute.cs b/DNN Platform/DotNetNuke.Web/Api/SupportedModulesAttribute.cs index c2763301ed9..c2731cde46f 100644 --- a/DNN Platform/DotNetNuke.Web/Api/SupportedModulesAttribute.cs +++ b/DNN Platform/DotNetNuke.Web/Api/SupportedModulesAttribute.cs @@ -19,6 +19,11 @@ public SupportedModulesAttribute(string supportedModules) this.supportedModules = supportedModules.Split(new[] { ',' }); } + public SupportedModulesAttribute(params string[] supportedModules) + { + this.supportedModules = supportedModules; + } + /// public override bool IsAuthorized(AuthFilterContext context) {