File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/Umbraco.Forms.Integrations.Automation.Zapier Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
+ using System . Configuration ;
3
4
using System . Net . Http ;
4
5
5
6
using Umbraco . Forms . Core ;
@@ -13,6 +14,8 @@ namespace Umbraco.Forms.Integrations.Automation.Zapier
13
14
{
14
15
public class ZapierWorkflow : WorkflowType
15
16
{
17
+ private const string UserGroup = "Umbraco.Cms.Integrations.Automation.Zapier.UserGroup" ;
18
+
16
19
private readonly IUmbracoContextAccessor _umbracoContextAccessor ;
17
20
18
21
public ZapierWorkflow ( IUmbracoContextAccessor umbracoContextAccessor )
@@ -76,6 +79,9 @@ public override List<Exception> ValidateSettings()
76
79
var validator = new WebHookValidator ( ) ;
77
80
validator . IsValid ( WebHookUri , ref exceptions ) ;
78
81
82
+ if ( string . IsNullOrEmpty ( ConfigurationManager . AppSettings [ UserGroup ] ) )
83
+ exceptions . Add ( new Exception ( "User group setting is required." ) ) ;
84
+
79
85
return exceptions ;
80
86
}
81
87
You can’t perform that action at this time.
0 commit comments