Browse Source

Deactivate rule if disabled

The change deactivates the rule if a user has disabled it.
pull/330/head
Keith W 7 years ago
committed by GitHub
parent
commit
0566c2647f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/Squidex.Domain.Apps.Core.Operations/HandleRules/RuleService.cs

5
src/Squidex.Domain.Apps.Core.Operations/HandleRules/RuleService.cs

@ -56,6 +56,11 @@ namespace Squidex.Domain.Apps.Core.HandleRules
Guard.NotNull(rule, nameof(rule));
Guard.NotNull(@event, nameof(@event));
if (!rule.IsEnabled)
{
return null;
}
if (!(@event.Payload is AppEvent appEvent))
{
return null;

Loading…
Cancel
Save