mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 07:38:45 +05:00
added disabling facility for user accounts
This commit is contained in:
@@ -39,6 +39,9 @@ type ActionTrigger struct {
|
||||
}
|
||||
|
||||
func (at *ActionTrigger) Execute(ub *UserBalance) (err error) {
|
||||
if ub.Disabled {
|
||||
return fmt.Errorf("User %s is disabled", ub.Id)
|
||||
}
|
||||
// does NOT need to Lock() because it is triggered from a method that took the Lock
|
||||
var aac Actions
|
||||
aac, err = accountingStorage.GetActions(at.ActionsId, false)
|
||||
|
||||
Reference in New Issue
Block a user