ActionTiming should execute EnableAccount always when requested

This commit is contained in:
DanB
2014-10-03 20:34:36 +02:00
parent e3277373fd
commit da5652c7c0

View File

@@ -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))