From da5652c7c0a93f0a4044ca248938534734dee486 Mon Sep 17 00:00:00 2001 From: DanB Date: Fri, 3 Oct 2014 20:34:36 +0200 Subject: [PATCH] ActionTiming should execute EnableAccount always when requested --- engine/action_timing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/action_timing.go b/engine/action_timing.go index 6d19f9a1b..8eaad606a 100644 --- a/engine/action_timing.go +++ b/engine/action_timing.go @@ -260,7 +260,7 @@ func (at *ActionTiming) Execute() (err error) { if err != nil { Logger.Warning(fmt.Sprintf("Could not get user balances for this id: %s. Skipping!", ubId)) return 0, err - } else if ub.Disabled { + } else if ub.Disabled && a.ActionType != ENABLE_ACCOUNT { return 0, fmt.Errorf("User %s is disabled", ubId) } //Logger.Info(fmt.Sprintf("Executing %v on %v", a.ActionType, ub.Id))